/* Shared readable controls, followed by the mobile workbench redesign.
   All text colors below meet 4.5:1 on their stated light backgrounds. */
:root {
  color-scheme: light;
  --green: #16634a;
  --green-dark: #104b38;
  --mint: #eaf5ee;
  --paper: #f3f5f8;
  --white: #ffffff;
  --ink: #182530;
  --muted: #526174;
  --line: #d9e1e8;
  --danger: #a92537;
  --control-border: #8090a1;
  --radius: 16px;
  --readable-shadow: 0 2px 12px rgb(24 37 48 / 4%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
body { color: var(--ink); }
button, input, select, textarea { font-family: inherit; }
button, a { touch-action: manipulation; }
input::placeholder, textarea::placeholder { color: #63748a; opacity: 1; }
input, select, textarea { max-width: 100%; }
small { font-size: 13px; line-height: 1.6; }
.surface { border-color: var(--line); background: var(--white); border-radius: var(--radius); }
.muted { color: var(--muted); font-size: 14px; }
.positive-text { color: var(--green) !important; }
.negative-text { color: var(--danger) !important; }

/* A shared component baseline also benefits the administration dialogs. */
.btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn-primary { color: #fff; background: var(--green); border-color: var(--green); }
.btn-primary:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); }
.btn-light { color: var(--green); background: var(--mint); border-color: #b7d1c2; }
.btn-quiet { color: var(--muted); }
.btn-small { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.btn:not(:disabled):active { transform: none; box-shadow: inset 0 0 0 1px rgb(24 37 48 / 12%); }
button:disabled, .btn:disabled {
  opacity: 1;
  color: var(--muted);
  background: #edf1f5;
  border-color: #cbd6e0;
  cursor: not-allowed;
}
.text-button { min-height: 40px; gap: 6px; font-size: 14px; font-weight: 600; color: var(--green); }
.text-button svg { width: 16px; height: 16px; }
.icon-button {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--muted); background: #f3f5f8;
}
.icon-button svg { width: 21px; height: 21px; }
.badge, .presence-badge {
  padding: 5px 9px; border: 1px solid transparent; border-radius: 7px;
  font-size: 13px; line-height: 1.5; font-weight: 600;
}
.badge-neutral, .presence-unknown { color: #4c5c6e; background: #edf1f5; border-color: #d9e1e8; }
.badge-ready, .badge-paid, .presence-online { color: #135d43; background: #e9f5ee; border-color: #c9e1d2; }
.badge-processing, .presence-offline { color: #80500b; background: #fff3df; border-color: #e9d5b1; }
.badge-failed { color: #a92537; background: #fff0f2; border-color: #edcbd1; }
.presence-badge i { width: 6px; height: 6px; }
.field { gap: 8px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.field > span { font-size: 14px; font-weight: 650; color: var(--ink); }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 11px 13px;
  border: 1px solid var(--control-border); border-radius: 9px;
  background: #fff; color: var(--ink); font-size: 16px; line-height: 1.6;
}
.field textarea { min-height: 112px; resize: vertical; }
.field small, .field .field-help, .picker-feedback { color: var(--muted); font-size: 13px; line-height: 1.65; }
.form-grid { gap: 20px; min-width: 0; }
.form-grid > *, .field { min-width: 0; }
.notice { gap: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.7; border: 1px solid var(--line); border-radius: 10px; }
.notice > svg { margin-top: 3px; }
.notice-green { color: #135d43; background: #eaf5ee; border-color: #c9e1d2; }
.notice-warning { color: #80500b; background: #fff3df; border-color: #e9d5b1; }
.form-error { color: #a92537; background: #fff0f2; border: 1px solid #edcbd1; padding: 12px 14px; font-size: 14px; line-height: 1.7; }
.empty-state { padding: 36px 20px; gap: 12px; }
.empty-icon { color: var(--muted); background: #edf1f5; }
.empty-state strong { color: var(--ink); font-size: 16px; font-weight: 650; }
.empty-state p, .error-panel p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.loading-state, .boot-screen p { color: var(--muted); font-size: 15px; }
.spinner { width: 22px; height: 22px; border-color: #c7d5df; border-top-color: var(--green); }
.toast { font-size: 15px; padding: 14px 18px; border-radius: 12px; background: #104b38; }
.toast.error { background: #8e2534; }
.pagination-controls { gap: 12px; margin-top: 20px; }
.pagination-controls .count-label { color: var(--muted); font-size: 13px; }
.pagination-controls .btn { min-height: 44px; padding: 9px 12px; font-size: 14px; }
.pagination-controls .btn svg { width: 16px; height: 16px; }

/* One scrollable dialog, with its heading and close action always visible. */
.modal {
  width: min(680px, calc(100vw - 32px)); max-width: 680px;
  max-height: calc(100dvh - 40px); padding: 0;
  overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 16px;
  color: var(--ink); background: #fff;
  box-shadow: 0 24px 90px rgb(15 30 43 / 25%);
}
.modal::backdrop { background: rgb(12 25 37 / 60%); backdrop-filter: blur(2px); }
.modal-head {
  position: sticky; top: 0; z-index: 5;
  min-height: 76px; padding: 14px 24px; gap: 16px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.modal-head h2 { min-width: 0; font-size: 20px; line-height: 1.45; font-weight: 700; overflow-wrap: anywhere; }
.modal-head .icon-button { flex-shrink: 0; }
.modal-form { gap: 22px; padding: 24px; min-width: 0; }
.modal-description { color: var(--muted); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.modal-form .rules-note { font-size: 13px; color: var(--muted); }
.modal-form .btn-full { margin-top: 4px; }
.binding-code-display {
  padding: 20px 16px; font-size: 23px; line-height: 1.7; letter-spacing: 1px;
  color: var(--green); background: #eaf5ee; border-color: #799f88; border-radius: 12px;
}

/* Mobile canvas and navigation. */
.worker-body { background: var(--paper); background-image: none; font-size: 16px; line-height: 1.6; }
.worker-body .app-shell { width: 100%; max-width: 560px; background: var(--paper); box-shadow: 0 8px 48px rgb(24 37 48 / 8%); }
.worker-body .worker-header {
  height: 76px; padding: 0 20px; background: #fff;
  border-bottom: 1px solid var(--line);
}
.worker-body .brand { font-size: 22px; font-weight: 750; letter-spacing: 0; }
.worker-body .brand-mark { width: 40px; height: 42px; border-radius: 12px; font-size: 23px; }
.worker-body .avatar-button { width: 44px; height: 44px; display: grid; place-items: center; }
.worker-body .avatar { background: #eaf5ee; color: var(--green); border-color: #d5e7dc; }
.worker-body .worker-main { padding: 20px 20px calc(112px + env(safe-area-inset-bottom)); min-height: calc(100dvh - 76px); }
.worker-body .worker-main > * { min-width: 0; }
.worker-body .surface { box-shadow: var(--readable-shadow); }
.worker-body .btn { min-height: 48px; font-size: 16px; }
.worker-body .btn-small { min-height: 44px; font-size: 14px; }
.worker-body .text-button, .worker-body .back-button { min-height: 44px; font-size: 14px; color: var(--green); }
.worker-body .back-button { padding: 0; margin-bottom: 12px; }
.worker-body .eyebrow { color: var(--muted); font-size: 13px; line-height: 1.65; letter-spacing: .4px; }
.worker-body .greeting { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin: 4px 0 24px; }
.worker-body .greeting > div:first-child { min-width: 0; flex: 1; }
.worker-body .greeting h1 { color: var(--ink); font-size: 27px; line-height: 1.4; letter-spacing: -.5px; overflow-wrap: anywhere; }
.worker-body .greeting-dot { color: var(--green); }
.worker-body .date-chip { color: var(--muted); font-size: 13px; padding-top: 4px; }
.worker-body .page-intro { margin: 0 0 24px; }
.worker-body .page-intro h1 { color: var(--ink); font-size: 27px; line-height: 1.45; letter-spacing: -.4px; overflow-wrap: anywhere; }
.worker-body .page-intro p { color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 10px; }
.worker-body .section { margin-top: 28px; }
.worker-body .section-head { gap: 12px; margin-bottom: 16px; align-items: center; }
.worker-body .section-head h2 { color: var(--ink); font-size: 18px; line-height: 1.5; font-weight: 700; letter-spacing: 0; min-width: 0; }
.worker-body .quiet-footer { font-size: 13px; line-height: 1.8; color: var(--muted); letter-spacing: 0; margin-top: 28px; }
.worker-body .bottom-nav {
  max-width: 560px; min-height: calc(80px + env(safe-area-inset-bottom));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); backdrop-filter: none;
  box-shadow: 0 -4px 18px rgb(24 37 48 / 4%);
}
.worker-body .nav-item { min-width: 0; min-height: 56px; padding: 6px 0; gap: 5px; color: var(--muted); font-size: 13px; line-height: 1.4; border-radius: 10px; }
.worker-body .nav-item.active { color: var(--green); background: #eaf5ee; font-weight: 700; }
.worker-body .nav-item svg { width: 23px; height: 23px; }

/* Wallet hierarchy and complete, readable ledger rows. */
.worker-body .wallet-hero { padding: 24px; border-radius: 18px; background: var(--green); box-shadow: 0 8px 20px rgb(22 99 74 / 12%); }
.worker-body .wallet-hero-top { gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.worker-body .wallet-hero-top > span:first-child { color: #fff; font-size: 15px; line-height: 1.6; }
.worker-body .hero-pill { color: var(--green); background: #fff; border: 0; border-radius: 7px; padding: 5px 9px; font-size: 13px; line-height: 1.5; white-space: normal; max-width: 62%; }
.worker-body .big-money { font-size: clamp(46px, 13vw, 60px); line-height: 1.15; letter-spacing: -1.5px; margin: 26px 0 16px; overflow-wrap: anywhere; }
.worker-body .big-money > span { color: #fff; font-size: 27px; margin-right: 8px; }
.worker-body .wallet-subline { color: #e1efe8; font-size: 13px; line-height: 1.7; flex-wrap: wrap; gap: 6px 16px; }
.worker-body .wallet-subline span + span { padding-left: 0; border-left: 0; }
.worker-body .hero-button { min-height: 44px; min-width: 132px; font-size: 15px; background: #fff; color: var(--green); margin-top: 22px; padding: 10px 16px; }
.worker-body .wallet-decoration { opacity: .06; }
.worker-body .balance-summary, .worker-body .withdrawal-card { padding: 22px; }
.worker-body .balance-summary > .muted { color: var(--muted); font-size: 15px; }
.worker-body .wallet-balance { color: var(--ink); font-size: 25px; margin: 18px 0 24px; overflow-wrap: anywhere; }
.worker-body .wallet-balance strong { font-size: 48px; line-height: 1.15; }
.worker-body .balance-stat-row { gap: 16px; padding-top: 20px; }
.worker-body .balance-stat-row > div { min-width: 0; }
.worker-body .balance-stat-row > div + div { padding-left: 16px; }
.worker-body .balance-stat-row span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.worker-body .balance-stat-row strong { color: var(--ink); font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.worker-body .wallet-rules { padding: 16px; margin: 18px 0; background: #f3f5f8; border-color: var(--line); }
.worker-body .wallet-rules strong { color: var(--ink); font-size: 15px; line-height: 1.75; font-weight: 650; }
.worker-body .wallet-rules p { color: var(--muted); font-size: 14px; line-height: 1.75; margin-top: 8px; }
.worker-body .wallet-rules small { color: var(--muted); font-size: 13px; line-height: 1.75; margin-top: 10px; }
.worker-body .amount-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.worker-body .amount-choice { width: 100%; padding: 18px 10px; min-width: 0; min-height: 144px; border: 1px solid #a8b6c2; background: #fff; border-radius: 12px; }
.worker-body .amount-choice > span:first-child { color: var(--ink); font-size: 20px; }
.worker-body .amount-choice strong { font-size: 34px; line-height: 1.4; }
.worker-body .amount-choice.selected { border: 2px solid var(--green); background: #eaf5ee; }
.worker-body .amount-choice .amount-choice-label { color: var(--ink); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.worker-body .amount-choice small { color: var(--muted); font-size: 13px; line-height: 1.6; }
.worker-body .amount-choice:disabled { background: #edf1f5; border-color: #cbd6e0; }
.worker-body .amount-choice:disabled > span:first-child { color: var(--muted); }
.worker-body .choice-tick { min-height: 22px; padding: 2px 5px; background: var(--green); color: #fff; }
.worker-body .withdrawal-help, .worker-body .security-note { color: var(--muted); font-size: 13px; line-height: 1.75; }
.worker-body .security-note { text-align: center; align-items: flex-start; margin-top: 16px; }
.worker-body .security-note svg { margin-top: 3px; }
.worker-body .withdrawal-submit { font-size: 16px; }
.worker-body .withdrawal-row { padding: 18px 16px; border-color: var(--line); gap: 14px; }
.worker-body .withdrawal-info strong { color: var(--ink); font-size: 16px; }
.worker-body .withdrawal-info small { color: var(--muted); font-size: 13px; margin-top: 6px; }
.worker-body .withdrawal-action { gap: 10px; flex-wrap: wrap; }
.worker-body .withdrawal-action .muted, .worker-body .withdrawal-error { font-size: 13px; line-height: 1.7; }
.worker-body .ledger-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 18px 16px; border-color: var(--line); }
.worker-body .transaction-icon { color: var(--muted); background: #edf1f5; }
.worker-body .transaction-icon.positive { color: var(--green); background: #eaf5ee; }
.worker-body .ledger-copy strong { color: var(--ink); font-size: 15px; line-height: 1.6; }
.worker-body .ledger-copy small { color: var(--muted); font-size: 13px; line-height: 1.65; margin-top: 5px; max-width: none; white-space: normal; overflow-wrap: anywhere; }
.worker-body .ledger-value { max-width: 110px; }
.worker-body .ledger-value strong { color: var(--ink); font-size: 17px; line-height: 1.6; }
.worker-body .ledger-value small { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 5px; }

/* Task content, status feedback, and generous actions. */
.worker-body .online-card { margin-top: 20px; padding: 18px 16px; border-radius: 14px; align-items: flex-start; }
.worker-body .row-title { align-items: flex-start; gap: 12px; }
.worker-body .row-title strong { color: var(--ink); font-size: 16px; line-height: 1.6; }
.worker-body .row-title small { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 5px; }
.worker-body .row-icon { color: var(--green); background: #eaf5ee; width: 38px; height: 38px; }
.worker-body .online-card > .text-button { flex-shrink: 0; align-self: center; }
.worker-body .task-market-banner { color: var(--green); background: #eaf5ee; border-color: #c9e1d2; padding: 20px; border-radius: 14px; }
.worker-body .task-market-banner strong { color: var(--green); font-size: 17px; line-height: 1.6; }
.worker-body .task-market-banner p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.worker-body .task-market-banner > svg { color: var(--green); transform: none; }
.worker-body .task-filters { gap: 10px; margin-bottom: 20px; }
.worker-body .filter-chip { min-height: 44px; padding: 10px 14px; color: var(--muted); background: #fff; border-color: #a8b6c2; font-size: 14px; border-radius: 9px; }
.worker-body .filter-chip.active { color: #fff; background: var(--green); border-color: var(--green); }
.worker-body .task-grid, .worker-body .assignment-grid { gap: 18px; }
.worker-body .task-card, .worker-body .assignment-card { padding: 22px 20px; border-radius: 16px; }
.worker-body .task-card h2 { color: var(--ink); font-size: 21px; line-height: 1.5; letter-spacing: 0; }
.worker-body .task-card > p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.worker-body .task-symbol { color: var(--green); background: #eaf5ee; }
.worker-body .task-symbol-gold { color: #80500b; background: #fff3df; }
.worker-body .task-card-footer { flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-color: var(--line); }
.worker-body .task-card-footer > span { color: var(--muted); font-size: 13px; line-height: 1.7; }
.worker-body .task-card-footer strong { color: var(--green); font-size: 15px; line-height: 1.7; }
.worker-body .task-description { padding: 22px 20px; }
.worker-body .task-detail-stats { gap: 12px; }
.worker-body .task-detail-stats > span { color: var(--muted); font-size: 14px; }
.worker-body .task-detail-stats strong { font-size: 17px; color: var(--green); }
.worker-body .task-body h2, .worker-body .tutorial-video h2 { color: var(--ink); font-size: 18px; line-height: 1.6; }
.worker-body .instructions { color: var(--ink); font-size: 16px; line-height: 1.9; }
.worker-body .tutorial-video small { color: var(--muted); font-size: 13px; line-height: 1.75; }
.worker-body .tutorial-video video { width: 100%; max-width: 100%; border-radius: 10px; }
.worker-body .consent { color: var(--ink); font-size: 15px; line-height: 1.8; min-height: 48px; padding: 8px 0; gap: 12px; }
.worker-body .consent input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--green); }
.worker-body .assignment-card h3 { color: var(--ink); font-size: 19px; line-height: 1.6; }
.worker-body .assignment-note, .worker-body .assignment-rate { color: var(--muted); font-size: 14px; line-height: 1.8; }
.worker-body .assignment-card > .btn { min-height: 48px; font-size: 15px; }
.worker-body .checkin-state { color: var(--green); background: #eaf5ee; padding: 14px; font-size: 14px; line-height: 1.7; }
.worker-body .checkin-history-row { align-items: flex-start; padding: 18px 16px; gap: 14px; }
.worker-body .checkin-history-row > div:first-child strong { color: var(--ink); font-size: 15px; line-height: 1.6; }
.worker-body .checkin-history-row small { color: var(--muted); font-size: 13px; line-height: 1.7; white-space: normal; max-width: none; overflow-wrap: anywhere; }
.worker-body .checkin-history-row .positive-text { font-size: 15px; }

/* Invites and personal account pages. */
.worker-body .invitation-banner { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 20px 16px; margin: 20px 0 28px; color: var(--green); background: #eaf5ee; border-color: #c9e1d2; border-radius: 14px; }
.worker-body .invitation-banner > svg { display: none; }
.worker-body .invitation-symbol { width: 40px; color: var(--green); }
.worker-body .invitation-copy strong { color: var(--green); font-size: 16px; line-height: 1.6; }
.worker-body .invitation-copy small { color: var(--muted); font-size: 13px; line-height: 1.7; }
.worker-body .invitation-amount { color: var(--green); font-family: inherit; font-size: 29px; line-height: 1.2; }
.worker-body .invitation-amount small { color: var(--muted); font-family: inherit; font-size: 13px; line-height: 1.5; }
.worker-body .invite-hero { padding: 26px 20px; background: #eaf5ee; border-color: #c9e1d2; border-radius: 18px; }
.worker-body .invite-gift { color: var(--green); background: #d7eadd; transform: none; }
.worker-body .invite-hero .eyebrow { color: var(--muted); font-size: 14px; }
.worker-body .invite-big { color: var(--green); gap: 10px; margin: 12px 0; }
.worker-body .invite-big strong { font-family: inherit; font-size: 68px; line-height: 1.2; font-weight: 750; letter-spacing: -2px; }
.worker-body .invite-big span { font-size: 17px; }
.worker-body .invite-hero > p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: none; }
.worker-body .invite-code-box { background: #fff; border-color: #799f88; padding: 14px 12px; gap: 10px; flex-wrap: wrap; }
.worker-body .invite-code-box > span, .worker-body .invite-code-box .text-button { color: var(--muted); font-size: 13px; }
.worker-body .invite-code-box strong { color: var(--green); font-size: 22px; letter-spacing: 1px; overflow-wrap: anywhere; }
.worker-body .invite-url { color: var(--ink); font-size: 16px; line-height: 1.6; min-height: 48px; padding: 12px; background: #fff; border-color: var(--control-border); }
.worker-body .invite-hero .btn { font-size: 16px; }
.worker-body .invite-stats { gap: 14px; margin: 20px 0; }
.worker-body .invite-stats > div { min-width: 0; padding: 20px 16px; }
.worker-body .invite-stats span { color: var(--muted); font-size: 13px; line-height: 1.7; }
.worker-body .invite-stats strong { color: var(--ink); font-size: 30px; line-height: 1.4; margin-top: 12px; overflow-wrap: anywhere; }
.worker-body .invite-steps { padding: 22px 20px; }
.worker-body .step { gap: 14px; margin-bottom: 24px; }
.worker-body .step > span { width: 30px; height: 30px; color: var(--green); background: #eaf5ee; font-size: 14px; }
.worker-body .step strong { color: var(--ink); font-size: 16px; line-height: 1.7; }
.worker-body .step small { color: var(--muted); font-size: 14px; line-height: 1.8; }
.worker-body .rules-note, .worker-body .count-label { color: var(--muted); font-size: 13px; line-height: 1.8; }
.worker-body .referral-row { padding: 18px 16px; gap: 12px; align-items: flex-start; }
.worker-body .referral-info strong { color: var(--ink); font-size: 16px; line-height: 1.6; }
.worker-body .referral-info small { color: var(--muted); font-size: 13px; line-height: 1.6; }
.worker-body .referral-outcome > .positive-text { font-size: 16px; }
.worker-body .support-entry { padding: 22px 0 0; gap: 14px; }
.worker-body .support-entry strong { color: var(--ink); font-size: 16px; line-height: 1.7; }
.worker-body .support-entry small { color: var(--muted); font-size: 13px; line-height: 1.75; }
.worker-body .support-icon { color: var(--green); background: #eaf5ee; width: 44px; height: 44px; }
.worker-body .support-entry > svg { color: var(--green); }
.worker-body .profile-card { padding: 28px 20px; }
.worker-body .avatar-large { width: 76px; height: 76px; font-size: 30px; }
.worker-body .profile-card h2 { color: var(--ink); font-size: 23px; line-height: 1.5; }
.worker-body .profile-card p { color: var(--muted); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.worker-body .profile-link { color: var(--ink); min-height: 64px; padding: 18px 20px; gap: 12px; font-size: 16px; line-height: 1.7; }
.worker-body .profile-link svg, .worker-body .profile-link::after { color: var(--green); }
.worker-body .profile-details { padding: 0 20px; }
.worker-body .profile-details > div { gap: 14px; padding: 20px 0; font-size: 15px; }
.worker-body .profile-details > div > span:first-child { color: var(--muted); }
.worker-body .profile-details strong { overflow-wrap: anywhere; }

/* Registration uses the same form scale as the actual workbench. */
.worker-body .auth-page { padding: 28px 24px 32px; background: var(--paper); }
.worker-body .auth-brand { gap: 14px; flex-wrap: wrap; }
.worker-body .auth-brand .brand { font-size: 22px; }
.worker-body .mini-tag, .worker-body .auth-brand .mini-tag { color: var(--muted); background: #e8edf3; font-size: 13px; padding: 5px 8px; line-height: 1.6; white-space: normal; }
.worker-body .auth-hero { padding: 32px 0 26px; }
.worker-body .auth-hero .eyebrow { color: var(--muted); font-size: 13px; letter-spacing: .3px; }
.worker-body .auth-hero h1 { color: var(--ink); font-size: 32px; line-height: 1.45; letter-spacing: -.7px; margin: 14px 0; }
.worker-body .auth-hero p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.worker-body .hero-sprout { display: none; }
.worker-body .auth-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--readable-shadow); }
.worker-body .auth-tabs { gap: 14px; margin-bottom: 24px; }
.worker-body .auth-tab { min-height: 48px; font-size: 17px; line-height: 1.6; color: var(--muted); padding: 0 0 16px; }
.worker-body .auth-tab.active { color: var(--green); }
.worker-body .auth-form { gap: 20px; }
.worker-body .auth-form > .btn { font-size: 16px; padding: 13px 18px; min-height: 50px; }
.worker-body .auth-footer { color: var(--muted); font-size: 13px; line-height: 1.75; margin-top: 26px; text-align: center; }

/* Account summaries and a genuinely legible seven-day calendar. */
.worker-body .worker-account-tools { margin-bottom: 18px; }
.worker-body .worker-account-tools .filter-select { min-height: 48px; font-size: 16px; padding: 10px 12px; color: var(--ink); background: #fff; border-color: var(--control-border); }
.worker-body .worker-binding-actions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
.worker-body .worker-binding-actions > .btn { min-height: 48px; padding: 12px 16px; gap: 10px; font-size: 16px; }
.worker-body .worker-binding-actions > .btn svg { width: 20px; height: 20px; }
.worker-body .worker-account-list { gap: 20px; }
.worker-body .worker-account-card { padding: 22px 20px; }
.worker-body .worker-account-card h2 { font-size: 19px; line-height: 1.6; }
.worker-body .worker-account-card > .section-head { gap: 12px; margin-bottom: 20px; }
.worker-body .account-day-stats { padding: 22px 0; gap: 10px; border-color: var(--line); }
.worker-body .account-day-stats > div + div { border-color: var(--line); }
.worker-body .account-day-stats strong { color: var(--ink); font-size: 32px; line-height: 1.2; font-weight: 700; }
.worker-body .account-day-stats span { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 10px; }
.worker-body .account-source-list { margin: 20px 0; }
.worker-body .account-source-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin-top: 16px; }
.worker-body .account-source-list > div > span:first-child { color: var(--ink); font-size: 15px; }
.worker-body .account-source-list .presence-badge { font-size: 13px; padding: 4px 8px; }
.worker-body .account-source-list small { grid-column: 1 / -1; margin-left: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.worker-body .account-source-list > .muted { color: var(--muted); font-size: 14px; }
.worker-body .worker-account-footer { padding-top: 20px; border-color: var(--line); gap: 12px; }
.worker-body .worker-account-footer > div > span { color: var(--muted); font-size: 13px; }
.worker-body .worker-account-footer > div > strong { color: var(--green); font-size: 24px; line-height: 1.4; margin-top: 7px; }
.worker-body .worker-account-footer > .btn { min-height: 44px; padding: 10px 12px; font-size: 14px; }
.presence-summary { color: var(--muted); font-size: 14px; line-height: 1.8; gap: 10px 14px; }
.presence-summary > span + span { border-color: var(--line); padding-left: 14px; }
.presence-legend { flex-wrap: wrap; gap: 10px; }
.presence-calendar { width: 100%; grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 5px; overflow-x: auto; padding: 3px; }
.calendar-weekday { font-size: 13px; line-height: 1.6; color: var(--muted); padding: 5px 0 9px; }
.calendar-day { min-width: 44px; min-height: 68px; padding: 10px 2px; gap: 7px; border: 1px solid transparent; border-radius: 9px; }
.calendar-day strong { font-size: 18px; line-height: 1.35; font-weight: 700; }
.calendar-day small { font-size: 13px; line-height: 1.5; }
.calendar-day:hover { border-color: var(--green); }
.day-sample-details { border-color: var(--line); padding-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.day-sample-details > strong { color: var(--ink); font-size: 16px; }
.day-sample-details > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.sample-list { gap: 12px; margin-top: 16px; }
.sample-list > div { padding: 14px; color: var(--ink); background: #f3f5f8; border-color: var(--line); border-radius: 9px; font-size: 14px; gap: 10px; flex-wrap: wrap; }
.sample-list time { color: var(--muted); font-size: 13px; }

/* The chat is a reading surface, rather than a dense table of tiny messages. */
.worker-body .chat-main { min-height: 0; height: calc(100dvh - 76px - 80px - env(safe-area-inset-bottom)); padding: 0; background: #f3f5f8; }
.worker-body .chat-heading { padding: 18px 20px; gap: 14px; background: #fff; border-color: var(--line); }
.worker-body .chat-heading h1 { color: var(--ink); font-size: 21px; line-height: 1.4; margin-bottom: 5px; letter-spacing: 0; }
.worker-body .support-avatar { color: var(--green); background: #eaf5ee; }
.worker-body .chat-connection { color: var(--muted); font-size: 13px; line-height: 1.6; }
.worker-body .chat-connection i { width: 7px; height: 7px; background: var(--green); }
.worker-body .chat-notice { color: var(--muted); font-size: 13px; line-height: 1.7; padding: 12px 20px; gap: 8px; background: #edf1f5; border-color: var(--line); align-items: flex-start; }
.worker-body .chat-notice svg { margin-top: 3px; }
.worker-body .message-list { padding: 22px 16px; }
.worker-body .message-row { gap: 10px; margin-bottom: 24px; }
.worker-body .message-avatar { width: 32px; height: 32px; color: var(--green); background: #dceee3; }
.worker-body .message-content { max-width: 82%; }
.worker-body .message-sender, .worker-body .message-content time { color: var(--muted); font-size: 13px; line-height: 1.6; }
.worker-body .message-bubble { color: var(--ink); background: #fff; border-color: var(--line); font-size: 16px; line-height: 1.8; padding: 12px 15px; }
.worker-body .mine .message-bubble { color: #fff; background: var(--green); border-color: var(--green); }
.worker-body .chat-welcome h2 { color: var(--ink); font-size: 18px; line-height: 1.6; }
.worker-body .chat-welcome p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.worker-body .chat-composer { gap: 12px; padding: 14px 16px; background: #fff; border-color: var(--line); }
.worker-body .message-input { min-height: 48px; max-height: 144px; font-size: 16px; line-height: 1.7; color: var(--ink); background: #f3f5f8; border-color: var(--control-border); padding: 10px 12px; }
.worker-body .send-button { width: 48px; height: 48px; min-width: 48px; background: var(--green); }

/* Keyboard focus stays visible on controls and inside scrollable dialogs. */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--green); outline-offset: 3px;
  scroll-margin-block: 88px;
}
.field input:focus, .field textarea:focus, .field select:focus, .message-input:focus {
  border-color: var(--green); box-shadow: 0 0 0 3px #d5eadd;
}

@media (min-width: 800px) {
  .worker-body .app-shell { margin-top: 24px; border-radius: 20px 20px 0 0; }
  .worker-body .chat-main { height: calc(100dvh - 76px - 80px - 24px - env(safe-area-inset-bottom)); }
}
@media (min-width: 460px) {
  .worker-body .worker-binding-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worker-body .worker-binding-actions > .btn { font-size: 14px; }
}
@media (max-width: 600px) {
  .modal { width: calc(100vw - 16px); max-height: calc(100dvh - 24px); border-radius: 14px; }
  .modal-head { padding: 12px 16px; min-height: 72px; gap: 12px; }
  .modal-head h2 { font-size: 19px; }
  .modal-form { padding: 20px 18px; gap: 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .records-modal .modal-form { padding: 18px 12px 24px; }
  .presence-calendar { gap: 3px; padding: 0; }
  .calendar-day { min-height: 64px; padding: 9px 1px; }
  .calendar-day strong { font-size: 17px; }
  .presence-summary > span + span { border-left: 0; padding-left: 0; }
}
@media (max-width: 400px) {
  .worker-body .worker-main { padding-left: 16px; padding-right: 16px; }
  .worker-body .worker-header { padding-left: 18px; padding-right: 18px; }
  .worker-body .wallet-hero { padding: 22px 20px; }
  .worker-body .balance-summary, .worker-body .withdrawal-card { padding: 20px 18px; }
  .worker-body .auth-page { padding: 24px 18px 30px; }
  .worker-body .auth-card { padding: 22px 18px; }
  .worker-body .online-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .worker-body .online-card > .text-button { justify-self: end; }
  .worker-body .wallet-hero-top > span:first-child { font-size: 15px; }
  .worker-body .hero-pill { font-size: 13px; }
  .worker-body .wallet-subline { font-size: 13px; }
  .worker-body .account-day-stats { gap: 6px; }
  .worker-body .account-day-stats strong { font-size: 30px; }
  .worker-body .account-day-stats span { font-size: 13px; }
  .worker-body .pagination-controls { gap: 8px; }
  .worker-body .pagination-controls .btn { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Verified identity entry and member-specific three-digit account binding. */
.external-login-panel { display: flex; flex-direction: column; gap: 16px; }
.external-login-panel h2 { color: var(--ink); font-size: 21px; line-height: 1.5; }
.external-login-panel > p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.external-login-panel .btn { min-height: 48px; margin: 0; font-size: 16px; }
.external-login-panel .notice { margin: 0; font-size: 14px; }
.external-login-panel > .form-error { color: var(--danger); }
.external-login-panel > .rules-note { padding-top: 14px; font-size: 13px; }
.local-login-disclosure { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.local-login-disclosure > summary { min-height: 44px; padding: 10px 0; color: var(--green); font-size: 14px; font-weight: 600; line-height: 1.7; cursor: pointer; }
.local-login-disclosure > summary::marker { color: var(--green); }
.local-login-disclosure > summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.local-login-disclosure > .modal-description { margin: 8px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.local-login-disclosure .auth-tabs { margin-bottom: 22px; }
.identity-avatar { flex-shrink: 0; overflow: hidden; }
.identity-avatar > img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; border-radius: inherit; }
.profile-identity-status { display: flex; justify-content: center; margin: 15px 0 0; }
.worker-body .profile-card > .identity-profile-note { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.identity-details > div { align-items: flex-start; gap: 14px; }
.identity-details > div > span:first-child { flex-shrink: 0; }
.identity-details > div > strong, .identity-details .identity-id-kind { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.identity-details > .btn { margin-top: 10px; }
.identity-details > .rules-note { margin-top: 14px; }
.identity-id-kind { color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.worker-body .account-claim-panel { margin: 0 0 24px; padding: 22px; }
.account-claim-panel h2 { color: var(--ink); font-size: 21px; line-height: 1.5; }
.account-claim-panel > p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.account-claim-form { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.worker-body .account-claim-form .field input.binding-code-input { width: 100%; min-height: 56px; padding: 10px 16px; font-size: 27px; font-weight: 600; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; }
.worker-body .account-claim-form .field input.binding-code-input::placeholder { color: var(--muted); font-size: 16px; font-weight: 400; letter-spacing: 1px; }
@media (max-width: 400px) {
  .worker-body .account-claim-panel { padding: 20px 18px; }
  .external-login-panel h2, .account-claim-panel h2 { font-size: 20px; }
  .identity-details > div { gap: 10px; font-size: 14px; }
}

/* One personal workspace with explicitly addressed service conversations. */
.worker-body .workbench-todos { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0 0 22px; }
.worker-body .worker-main h1[tabindex="-1"]:focus { outline: none; }
.worker-body .greeting h1 { text-wrap: balance; }
.workbench-todo-item { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 98px; gap: 7px; padding: 13px 8px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.workbench-todo-item:hover { background: var(--mint); border-color: #8cb7a4; }
.workbench-todo-item strong { font-size: 25px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.workbench-todo-item span { color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.worker-body .workbench-welcome { margin-top: 20px; padding: 21px; }
.workbench-welcome h2 { color: var(--ink); font-size: 20px; line-height: 1.5; }
.workbench-welcome p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.workbench-welcome>div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.workbench-welcome .btn { flex: 1; min-width: 124px; padding-right: 12px; padding-left: 12px; }
.task-progress-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.progress-empty-state { margin: 0; padding: 14px 0 4px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.worker-body .account-binding-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; margin-bottom: 12px; }
.account-binding-entry>div { flex: 1; min-width: 0; }
.account-binding-entry strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.6; }
.account-binding-entry small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.account-binding-entry>.btn { flex-shrink: 0; padding: 10px 12px; font-size: 14px; }
.worker-body .account-binding-help { margin-bottom: 20px; }
.account-binding-help summary { min-height: 44px; padding: 11px 16px; color: var(--green); font-size: 14px; line-height: 1.6; cursor: pointer; }
.account-binding-help>div { padding: 0 16px 16px; }
.account-binding-help p { margin: 4px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.accounts-empty-state { padding: 20px 4px; }
.accounts-empty-state strong { color: var(--ink); font-size: 16px; }
.accounts-empty-state p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.modal>.account-claim-form { margin: 0; padding: 22px; }
.worker-account-card>.btn { margin-top: 10px; }
.worker-conversation-pane { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.worker-conversation-pane>.empty-state { margin: auto; }
.service-conversation-picker { display: flex; flex-shrink: 0; flex-direction: column; gap: 8px; padding: 12px 20px; color: var(--muted); background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; }
.service-conversation-select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control-border); border-radius: 8px; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.5; }
.service-conversation-select:focus { border-color: var(--green); }
.worker-body .worker-conversation-pane .message-list { width: 100%; flex: 1; min-height: 0; }
.worker-body .worker-conversation-pane .chat-composer { flex-shrink: 0; }
@media(max-width:400px) {
  .worker-body .account-binding-entry { padding: 16px; }
  .account-binding-entry>.btn { gap: 6px; padding: 10px; }
  .account-binding-entry>.btn svg { width: 16px; height: 16px; }
  .service-conversation-picker { padding-right: 16px; padding-left: 16px; }
}
