  .hcw-staff-app {
    --ink:        #1a1a1a;
    --ink-muted:  #5a5a5a;
    --ink-soft:   #8a8a8a;
    --paper:      #faf8f5;
    --card:       #ffffff;
    --line:       #e6e2da;
    --line-soft:  #f0ece5;
    --accent:     #01696F;   /* Hydra Teal — HCW brand */
    --accent-dk:  #0C4E54;
    --accent-ink: #ffffff;
    --accent-soft:rgba(1,105,111,0.10);
    --warm:       #c87b2f;
    --danger:     #b53b25;
    --ok:         #2f7a4f;
    --shadow-sm:  0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 14px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --serif: 'Fraunces', Georgia, serif;
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
  }
  .hcw-staff-app *, .hcw-staff-app *::before, .hcw-staff-app *::after { box-sizing: border-box; }

  /* ─── Header strip (sticky on iPhone) ─── */
  .hs-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, #0C4E54 0%, #01696F 100%);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .hs-brand {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
    margin: 0;
  }
  .hs-brand small {
    display: block;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 10px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1px;
  }
  .hs-worker-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 5px 12px 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
  }
  .hs-worker-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6dcf78;
    box-shadow: 0 0 6px rgba(109,207,120,0.7);
  }

  /* ─── Main column ─── */
  .hs-main {
    max-width: 560px;
    margin: 0 auto;
    padding: 16px 16px 96px;
  }

  /* ─── Panels (one per step) ─── */
  .hs-panel { display: none; }
  .hs-panel.active { display: block; animation: hsFadeIn 0.22s ease-out; }
  @keyframes hsFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ─── Progress bar ─── */
  .hs-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 18px;
    padding: 0 2px;
  }
  .hs-progress-step {
    flex: 1;
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    transition: background 0.2s;
  }
  .hs-progress-step.done { background: var(--accent); }
  .hs-progress-step.active { background: var(--accent); }
  .hs-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    font-weight: 600;
  }

  /* ─── Cards ─── */
  .hs-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 14px;
  }
  .hs-card-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 4px;
  }
  .hs-card-sub {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0 0 18px;
  }

  /* ─── Form fields (iPhone-tuned) ─── */
  .hs-field { margin-bottom: 14px; }
  .hs-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hs-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
  }
  .hs-label .req { color: var(--danger); }
  .hs-input,
  .hs-select,
  .hs-textarea {
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-size: 16px; /* 16px = no iOS zoom on focus */
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.4;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
  }
  .hs-input:focus,
  .hs-select:focus,
  .hs-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  .hs-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235a5a5a' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
  }
  .hs-textarea { resize: vertical; min-height: 80px; }
  .hs-hint {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 4px;
  }

  /* ─── Buttons ─── */
  .hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    border-radius: var(--r-sm);
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
    -webkit-tap-highlight-color: transparent;
  }
  .hs-btn:hover:not(:disabled) { background: var(--accent-dk); }
  .hs-btn:active:not(:disabled) { transform: scale(0.98); }
  .hs-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .hs-btn-secondary {
    background: var(--card);
    color: var(--accent);
    border: 1.5px solid var(--accent);
  }
  .hs-btn-secondary:hover:not(:disabled) { background: var(--accent-soft); }
  .hs-btn-ghost {
    background: transparent;
    color: var(--ink-muted);
    border: 1.5px solid var(--line);
  }
  .hs-btn-ghost:hover { background: var(--line-soft); color: var(--ink); }
  .hs-btn-danger { background: var(--danger); }
  .hs-btn-danger:hover { background: #962e1e; }
  .hs-btn-row { display: flex; gap: 10px; margin-top: 18px; }
  .hs-btn-row .hs-btn { flex: 1; }

  /* Dashboard tab toggle (Recent orders / Needs Review) reuses .hs-btn-secondary; this marks
     the active one so it matches the filled .hs-btn look without a new visual language. */
  .hs-btn-secondary.hs-tab-active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
  }
  #hsReviewBadge:empty { display: none; }
  #hsReviewBadge {
    display: inline-block;
    min-width: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--danger, #b3412a);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    margin-left: 4px;
  }

  /* Needs Review edit card: one per Draft order, built from .hs-card + .hs-field vocabulary */
  .hs-review-card { margin-bottom: 14px; }
  .hs-review-meta { font-size: 12px; color: var(--ink-soft); margin: 2px 0 10px; line-height: 1.5; }
  .hs-review-measure {
    font-size: 12.5px;
    color: var(--ink-muted);
    background: var(--accent-soft);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    margin-bottom: 14px;
    line-height: 1.6;
  }
  .hs-review-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.7fr 0.9fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
  }
  @media (max-width: 520px) {
    .hs-review-row { grid-template-columns: 1fr 1fr; }
  }
  .hs-review-row .hs-input { margin: 0; padding: 10px 12px; font-size: 14px; }

  /* ─── Radio / option cards ─── */
  .hs-option-list { display: grid; gap: 10px; }
  .hs-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
  }
  .hs-option:hover { border-color: var(--accent); }
  .hs-option.checked {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .hs-option input[type="radio"],
  .hs-option input[type="checkbox"] {
    margin: 2px 0 0;
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .hs-option-body { flex: 1; }
  .hs-option-title { font-weight: 600; font-size: 15px; margin: 0 0 2px; }
  .hs-option-desc { font-size: 13px; color: var(--ink-muted); margin: 0; }

  /* ─── Sock line items (Step 3 + 4) ─── */
  .hs-pair {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 14px;
    margin-bottom: 10px;
    position: relative;
  }
  .hs-pair-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
  }
  .hs-pair-num {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    font-weight: 600;
  }
  .hs-pair-price {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 17px;
  }
  .hs-pair-summary {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.4;
  }
  .hs-pair-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    margin-top: 6px;
  }

  /* ─── Invoice total ─── */
  .hs-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px;
    background: var(--accent-soft);
    border-radius: var(--r-sm);
    margin-top: 12px;
  }
  .hs-total-label { font-size: 13px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.06em; }
  .hs-total-amount { font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--accent); }

  /* ─── Status / toast ─── */
  .hs-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    max-width: 90vw;
  }
  .hs-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
  }
  .hs-toast.ok { background: var(--ok); }
  .hs-toast.err { background: var(--danger); }

  /* ─── Login / worker picker (full screen) ─── */
  .hs-login-screen {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
  }
  .hs-login-box {
    max-width: 380px;
    width: 100%;
    text-align: center;
  }
  .hs-login-logo {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 32px;
    color: var(--accent);
    margin: 0 0 6px;
  }
  .hs-login-sub {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0 0 28px;
  }
  .hs-worker-btn {
    display: block;
    width: 100%;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.15s;
  }
  .hs-worker-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
  }

  /* ─── Dashboard ─── */
  .hs-dash-stat {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
  }
  .hs-dash-stat-card {
    flex: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 14px;
    text-align: center;
  }
  .hs-dash-stat-num {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 26px;
    color: var(--accent);
    margin: 0;
    line-height: 1;
  }
  .hs-dash-stat-lbl {
    font-size: 11px;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 6px 0 0;
  }
  .hs-recent {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    overflow: hidden;
  }
  .hs-recent-head {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    background: var(--line-soft);
  }
  .hs-recent-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .hs-recent-item:last-child { border-bottom: 0; }
  .hs-recent-name { font-weight: 600; font-size: 15px; }
  .hs-recent-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
  .hs-recent-amt { font-family: var(--serif); font-weight: 600; color: var(--accent); }

  /* ─── Camera / file upload ─── */
  .hs-upload-zone {
    border: 2px dashed var(--line);
    border-radius: var(--r-md);
    padding: 32px 20px;
    text-align: center;
    background: #fafaf7;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
  }
  .hs-upload-zone:hover { border-color: var(--accent); background: var(--accent-soft); }
  .hs-upload-icon { font-size: 32px; margin-bottom: 8px; }
  .hs-upload-text { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
  .hs-upload-hint { font-size: 12px; color: var(--ink-soft); }
  .hs-upload-preview {
    margin-top: 12px;
    border-radius: var(--r-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
  }
  .hs-upload-preview img { width: 100%; display: block; }

  /* ─── Signature canvas ─── */
  .hs-sigpad {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    overflow: hidden;
    position: relative;
  }
  .hs-sigpad canvas {
    display: block;
    width: 100%;
    height: 220px;
    touch-action: none;
  }
  .hs-sigpad-clear {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--line);
    color: var(--ink-muted);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
    cursor: pointer;
  }
  .hs-sigpad-line {
    position: absolute;
    bottom: 30px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: var(--line);
  }

  /* ─── Tab switcher (signature method) ─── */
  .hs-tabs {
    display: flex;
    background: var(--line-soft);
    border-radius: var(--r-sm);
    padding: 4px;
    margin-bottom: 16px;
  }
  .hs-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
  }
  .hs-tab.active {
    background: #fff;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
  }

  /* ─── Loader ─── */
  .hs-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: hsSpin 0.8s linear infinite;
  }
  @keyframes hsSpin { to { transform: rotate(360deg); } }

  /* ─── Success screen ─── */
  .hs-success {
    text-align: center;
    padding: 40px 20px;
  }
  .hs-success-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--ok);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin-bottom: 18px;
  }
  .hs-success-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 26px;
    margin: 0 0 8px;
  }
  .hs-success-sub {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0 0 22px;
  }
  .hs-summary-box {
    background: var(--line-soft);
    border-radius: var(--r-sm);
    padding: 14px;
    margin: 0 auto 18px;
    max-width: 320px;
    text-align: left;
  }
  .hs-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
  }
  .hs-summary-row span:first-child { color: var(--ink-muted); }
  .hs-summary-row span:last-child { font-weight: 600; }

  /* ─── Tablet / desktop tweaks ─── */
  @media (min-width: 760px) {
    .hs-main { padding-top: 28px; padding-bottom: 120px; }
  }
