/* ═══════════════════════════════════════════════════════════════════
   Platform upgrade (Nov 2026) — shared by the contractor portal and admin:
   field workflow, proof of completion, job alerts, goals, dispatch board,
   activity log, scorecards, command palette.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --x-green: #22c55e; --x-amber: #fbbf24; --x-blue: #60a5fa; --x-red: #f87171; --x-violet: #a78bfa;
}

/* ── generic sheet / dialog ── */
.x-overlay { position: fixed; inset: 0; z-index: 700; background: rgba(2,6,4,.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: x-fade .18s ease; }
.x-sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; background: var(--p-surface);
  border: 1px solid var(--p-border); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; animation: x-rise .22s cubic-bezier(.22,1,.36,1); }
.x-sheet h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--p-text); }
.x-sheet .x-sub { margin: 0 0 16px; color: var(--p-muted); font-size: .85rem; }
.x-sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
@keyframes x-fade { from { opacity: 0; } }
@keyframes x-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.x-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px;
  font: 600 .82rem/1 Inter, system-ui, sans-serif; border: 1px solid var(--p-border); background: var(--p-surface2);
  color: var(--p-text); cursor: pointer; transition: background .15s, border-color .15s, transform .1s; text-decoration: none; }
.x-btn:hover { background: var(--p-surface3); }
.x-btn:active { transform: scale(.97); }
.x-btn:disabled { opacity: .5; cursor: not-allowed; }
.x-btn.primary { background: var(--p-green); border-color: transparent; color: #fff; }
.x-btn.amber { background: var(--p-amber); border-color: transparent; color: #111; }
.x-btn.danger { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.35); color: var(--x-red); }
.x-btn.sm { padding: 6px 11px; font-size: .74rem; border-radius: 8px; }
.x-btn svg { width: 15px; height: 15px; flex: none; }
.x-input, .x-select, .x-textarea { width: 100%; background: var(--p-surface2); border: 1px solid var(--p-border); border-radius: 10px;
  color: var(--p-text); padding: 10px 12px; font: 400 .88rem Inter, system-ui, sans-serif; }
.x-textarea { min-height: 76px; resize: vertical; }
.x-label { display: block; font-size: .74rem; font-weight: 600; color: var(--p-muted); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.x-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700;
  background: var(--p-surface3); color: var(--p-muted); white-space: nowrap; }
.x-pill.green { background: rgba(34,197,94,.14); color: var(--x-green); }
.x-pill.amber { background: rgba(251,191,36,.14); color: var(--x-amber); }
.x-pill.blue { background: rgba(96,165,250,.14); color: var(--x-blue); }
.x-pill.red { background: rgba(248,113,113,.14); color: var(--x-red); }
.x-pill.violet { background: rgba(167,139,250,.14); color: var(--x-violet); }
.x-muted { color: var(--p-muted); }
.x-empty { padding: 28px; text-align: center; color: var(--p-muted2); font-size: .85rem; }

/* ── contractor: workflow stepper on My Jobs ── */
.x-job { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.x-job.live { border-color: rgba(34,197,94,.35); box-shadow: 0 0 0 1px rgba(34,197,94,.12), 0 18px 40px -24px rgba(34,197,94,.45); }
.x-job-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.x-job-title { margin: 4px 0 2px; font-size: 1.02rem; color: var(--p-text); }
.x-job-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--p-muted); font-size: .8rem; margin-top: 6px; }
.x-job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.x-job-meta svg { width: 14px; height: 14px; }
.x-pay { font: 800 1.25rem 'Plus Jakarta Sans', Inter, sans-serif; color: var(--x-green); }
.x-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 0 14px; position: relative; }
.x-step { text-align: center; position: relative; font-size: .7rem; color: var(--p-muted2); font-weight: 600; }
.x-step::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--p-surface3); }
.x-step:first-child::before { display: none; }
.x-step .dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center;
  background: var(--p-surface2); border: 2px solid var(--p-surface3); color: var(--p-muted2); }
.x-step .dot svg { width: 12px; height: 12px; }
.x-step.done { color: var(--p-text); }
.x-step.done .dot { background: var(--p-green); border-color: var(--p-green); color: #fff; }
.x-step.done::before, .x-step.now::before { background: var(--p-green); }
.x-step.now { color: var(--x-amber); }
.x-step.now .dot { border-color: var(--x-amber); color: var(--x-amber); box-shadow: 0 0 0 4px rgba(251,191,36,.15); animation: x-ping 1.8s ease-out infinite; }
@keyframes x-ping { 0% { box-shadow: 0 0 0 0 rgba(251,191,36,.45); } 100% { box-shadow: 0 0 0 10px rgba(251,191,36,0); } }
.x-step small { display: block; font-weight: 500; color: var(--p-muted2); margin-top: 2px; font-size: .64rem; }
.x-job-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.x-job-actions .grow { flex: 1 1 180px; }
.x-proof-strip { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.x-proof-strip img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--p-border); cursor: zoom-in; }

/* ── proof-of-completion capture ── */
.x-drop { display: block; border: 1.5px dashed var(--p-border); border-radius: 14px; padding: 18px; text-align: center; color: var(--p-muted); cursor: pointer;
  transition: border-color .15s, background .15s; }
.x-drop:hover, .x-drop.over { border-color: var(--x-green); background: rgba(34,197,94,.05); }
.x-drop svg { width: 28px; height: 28px; color: var(--x-green); display: block; margin: 0 auto 6px; }
.x-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.x-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--p-border); }
.x-thumb img { width: 100%; height: 100%; object-fit: cover; }
.x-thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; line-height: 1; }
.x-thumb .x-kb { position: absolute; left: 4px; bottom: 4px; font-size: .6rem; background: rgba(0,0,0,.6); color: #fff; padding: 1px 5px; border-radius: 4px; }
.x-progress { height: 6px; border-radius: 99px; background: var(--p-surface3); overflow: hidden; margin-top: 14px; display: none; }
.x-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--x-green), var(--x-amber)); transition: width .25s; }

/* ── contractor: job alerts + goal ── */
.x-alert-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--p-surface); border: 1px solid var(--p-border);
  border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-size: .82rem; color: var(--p-muted); }
.x-alert-bar strong { color: var(--p-text); }
.x-switch { position: relative; width: 38px; height: 22px; flex: none; }
.x-switch input { opacity: 0; width: 0; height: 0; }
.x-switch span { position: absolute; inset: 0; background: var(--p-surface3); border-radius: 99px; transition: background .2s; cursor: pointer; }
.x-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.x-switch input:checked + span { background: var(--p-green); }
.x-switch input:checked + span::after { transform: translateX(16px); }
.x-alert-bar label.inline { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.x-alert-bar .x-input { width: 88px; padding: 6px 9px; }
.x-new-flag { animation: x-newjob 2.4s ease 3; }
@keyframes x-newjob { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 2px var(--x-amber), 0 0 30px rgba(251,191,36,.35); } }

.x-goal { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.x-ring { width: 128px; height: 128px; }
.x-ring circle { fill: none; stroke-width: 11; }
.x-ring .track { stroke: var(--p-surface3); }
.x-ring .proj { stroke: rgba(251,191,36,.45); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.22,1,.36,1); }
.x-ring .earned { stroke: var(--x-green); stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.22,1,.36,1); }
.x-ring text { fill: var(--p-text); font: 800 20px 'Plus Jakarta Sans', Inter, sans-serif; text-anchor: middle; }
.x-ring text.s { fill: var(--p-muted); font: 600 9px Inter, sans-serif; letter-spacing: .06em; }
.x-goal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.x-goal-stats div { background: var(--p-surface2); border-radius: 12px; padding: 10px 12px; }
.x-goal-stats b { display: block; font-size: 1.05rem; color: var(--p-text); }
.x-goal-stats span { font-size: .7rem; color: var(--p-muted); text-transform: uppercase; letter-spacing: .05em; }
.x-legend { display: flex; gap: 14px; font-size: .72rem; color: var(--p-muted); margin-top: 10px; }
.x-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.x-banner { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 800; background: #1f2937; color: #fff; padding: 10px 16px;
  border-radius: 999px; font-size: .8rem; box-shadow: 0 10px 30px rgba(0,0,0,.4); display: flex; gap: 8px; align-items: center; }
.x-banner.off { background: #7c2d12; }

/* ── admin: live indicator ── */
.x-live { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; color: var(--x-green); padding: 5px 10px;
  border-radius: 999px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); }
.x-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--x-green); animation: x-ping-g 1.6s ease-out infinite; }
.x-live.stale { color: var(--x-amber); background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.25); }
.x-live.stale i { background: var(--x-amber); }
@keyframes x-ping-g { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 100% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.x-kbd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border-radius: 10px; border: 1px solid var(--p-border);
  background: var(--p-surface2); color: var(--p-muted); font-size: .78rem; cursor: pointer; }
.x-kbd-btn:hover { color: var(--p-text); }
kbd { font: 600 .68rem Inter, sans-serif; padding: 2px 6px; border-radius: 5px; background: var(--p-surface3); border: 1px solid var(--p-border); color: var(--p-muted); }

/* ── wide content (board, tables) scrolls inside the page instead of stretching the layout ── */
.portal-wrap, .portal-main, .portal-page { min-width: 0; }
#page-dispatch-body, #page-scorecards-body { max-width: 100%; overflow: hidden; }

/* ── admin: dispatch board ── */
.x-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x proximity; }
.x-col { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 16px; display: flex; flex-direction: column; min-height: 420px;
  scroll-snap-align: start; transition: border-color .15s, background .15s; }
.x-col.drop-ok { border-color: var(--x-green); background: rgba(34,197,94,.05); }
.x-col.drop-no { border-color: rgba(248,113,113,.4); }
.x-col-hdr { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--p-border);
  font-weight: 700; font-size: .8rem; color: var(--p-text); position: sticky; top: 0; }
.x-col-hdr .sum { font-weight: 600; color: var(--p-muted); font-size: .72rem; }
.x-col-hdr i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.x-col-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.x-card { background: var(--p-surface2); border: 1px solid var(--p-border); border-radius: 12px; padding: 11px 12px; cursor: grab; font-size: .78rem;
  color: var(--p-muted); transition: transform .12s, box-shadow .12s, border-color .12s; position: relative; }
.x-card:hover { border-color: rgba(255,255,255,.22); transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.7); }
.x-card.dragging { opacity: .45; }
.x-card.locked { cursor: pointer; }
.x-card .t { color: var(--p-text); font-weight: 700; font-size: .84rem; margin: 3px 0; }
.x-card .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 6px; }
.x-card .id { font: 600 .66rem ui-monospace, Menlo, monospace; color: var(--p-muted2); }
.x-card .pay { color: var(--x-green); font-weight: 800; }
.x-card .who { display: inline-flex; align-items: center; gap: 6px; }
.x-av { width: 22px; height: 22px; border-radius: 50%; background: var(--p-surface3); color: var(--p-text); display: grid; place-items: center;
  font-size: .6rem; font-weight: 800; overflow: hidden; flex: none; }
.x-av img { width: 100%; height: 100%; object-fit: cover; }
.x-card.late { border-color: rgba(248,113,113,.5); }
.x-card.late::after { content: "LATE"; position: absolute; top: 9px; right: 10px; font-size: .58rem; font-weight: 800; color: var(--x-red);
  letter-spacing: .08em; animation: x-blink 1.2s steps(2) infinite; }
@keyframes x-blink { 50% { opacity: .35; } }
.x-card .move { margin-top: 8px; width: 100%; padding: 5px 7px; font-size: .72rem; }
.x-shake { animation: x-shake .4s; }
@keyframes x-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.x-board-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.x-board-kpis div { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 14px; padding: 12px 14px; }
.x-board-kpis b { display: block; font: 800 1.3rem 'Plus Jakarta Sans', Inter, sans-serif; color: var(--p-text); }
.x-board-kpis span { font-size: .7rem; color: var(--p-muted); text-transform: uppercase; letter-spacing: .05em; }

/* ── admin: activity log ── */
.x-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.x-toolbar .x-input, .x-toolbar .x-select { width: auto; min-width: 160px; }
.x-feed { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 16px; overflow: hidden; }
.x-ev { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--p-border); font-size: .8rem; align-items: start; }
.x-ev:last-child { border-bottom: 0; }
.x-ev.fresh { animation: x-flash 1.6s ease; }
@keyframes x-flash { from { background: rgba(34,197,94,.12); } }
.x-ev time { color: var(--p-muted2); font-size: .72rem; padding-top: 2px; }
.x-ev .what { color: var(--p-text); }
.x-ev .what b { font-weight: 700; }
.x-ev details { margin-top: 6px; }
.x-ev summary { cursor: pointer; color: var(--p-muted); font-size: .72rem; }
.x-diff { margin-top: 6px; display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font: .72rem/1.5 ui-monospace, Menlo, monospace; }
.x-diff .k { color: var(--p-muted); }
.x-diff del { color: var(--x-red); text-decoration: line-through; opacity: .8; }
.x-diff ins { color: var(--x-green); text-decoration: none; }

/* ── admin: scorecards ── */
.x-table-wrap { overflow-x: auto; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 16px; }
.x-table { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 860px; }
.x-table th { text-align: left; padding: 11px 12px; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--p-muted);
  border-bottom: 1px solid var(--p-border); cursor: pointer; user-select: none; white-space: nowrap; }
.x-table th.sorted { color: var(--p-text); }
.x-table th.sorted::after { content: " ↓"; }
.x-table th.sorted.asc::after { content: " ↑"; }
.x-table td { padding: 11px 12px; border-bottom: 1px solid var(--p-border); color: var(--p-text); white-space: nowrap; }
.x-table tr:last-child td { border-bottom: 0; }
.x-table tr:hover td { background: rgba(255,255,255,.02); }
.x-score { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.x-score svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.x-score circle { fill: none; stroke-width: 4; }
.x-bar { width: 70px; height: 6px; border-radius: 99px; background: var(--p-surface3); display: inline-block; vertical-align: middle; margin-right: 6px; overflow: hidden; }
.x-bar i { display: block; height: 100%; border-radius: 99px; }

/* ── admin: command palette ── */
.x-cmdk { position: fixed; inset: 0; z-index: 900; background: rgba(2,6,4,.6); backdrop-filter: blur(5px); display: flex; justify-content: center;
  align-items: flex-start; padding: 12vh 16px 16px; animation: x-fade .12s ease; }
.x-cmdk-box { width: 100%; max-width: 620px; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: x-rise .16s cubic-bezier(.22,1,.36,1); }
.x-cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--p-border); }
.x-cmdk-in svg { width: 18px; height: 18px; color: var(--p-muted); flex: none; }
.x-cmdk-in input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--p-text); font: 500 1rem Inter, system-ui, sans-serif; }
.x-cmdk-list { max-height: 52vh; overflow: auto; padding: 6px; }
.x-cmdk-group { padding: 10px 10px 4px; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted2); }
.x-cmdk-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--p-text); font-size: .86rem; }
.x-cmdk-item .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--p-surface2); display: grid; place-items: center; color: var(--p-muted); flex: none; }
.x-cmdk-item .ic svg { width: 15px; height: 15px; }
.x-cmdk-item .sub { color: var(--p-muted); font-size: .74rem; margin-left: auto; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.x-cmdk-item mark { background: none; color: var(--x-amber); font-weight: 700; }
.x-cmdk-item.on { background: var(--p-surface2); }
.x-cmdk-item.on .ic { color: var(--x-green); }
.x-cmdk-foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--p-border); font-size: .7rem; color: var(--p-muted2); }

/* ── photo lightbox ── */
.x-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.x-gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--p-border); aspect-ratio: 4/3; }
.x-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.x-gallery a:hover img { transform: scale(1.04); }

@media (max-width: 640px) {
  .x-kbd-btn .lbl, .x-kbd-btn kbd, .x-live span, .adm-hdr .adm-hdr-badge { display: none; }
  .x-kbd-btn { padding: 8px; } .x-live { padding: 7px; }
  .mj-tabs { max-width: 100%; overflow-x: auto; }
  .x-goal { grid-template-columns: 1fr; justify-items: center; }
  .x-ev { grid-template-columns: 1fr; gap: 4px; }
  .x-steps { font-size: .6rem; }
  .x-cmdk { padding-top: 6vh; }
}
@media (prefers-reduced-motion: reduce) {
  .x-step.now .dot, .x-live i, .x-card.late::after, .x-new-flag { animation: none !important; }
}

/* ═══ Contractor onboarding + availability (Nov 2026) ═══ */
.ob-panel { background: linear-gradient(135deg, rgba(34,197,94,.08), rgba(251,191,36,.06)); border: 1px solid rgba(34,197,94,.28); border-radius: 18px; padding: 20px; margin-bottom: 20px; }
.ob-panel.slim { padding: 12px 16px; font-size: .85rem; color: var(--p-text); border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.07); border-radius: 12px; }
.ob-panel.slim a { color: var(--x-amber); font-weight: 700; margin-left: 6px; }
.ob-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.ob-head h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--p-text); }
.ob-head p { margin: 0; color: var(--p-muted); font-size: .84rem; }
.ob-ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--x-green) calc(var(--p) * 360deg), var(--p-surface3) 0); }
.ob-ring span { width: 46px; height: 46px; border-radius: 50%; background: var(--p-surface); display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--p-text); }
.ob-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ob-steps li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: var(--p-surface); border: 1px solid var(--p-border); }
.ob-steps li div { flex: 1; min-width: 0; }
.ob-steps b { display: block; font-size: .88rem; color: var(--p-text); }
.ob-steps small { color: var(--p-muted); font-size: .76rem; }
.ob-steps li.done b { color: var(--p-muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.25); }
.ob-steps li.wait { border-style: dashed; }
.ob-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: .8rem;
  background: var(--p-surface3); color: var(--p-muted); }
.ob-steps li.done .ob-n { background: var(--p-green); color: #fff; }
.ob-progress { display: flex; align-items: center; gap: 14px; font-size: .85rem; color: var(--p-muted); margin-bottom: 4px; }
.ob-progress b { color: var(--p-text); }
.ob-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--p-surface3); overflow: hidden; }
.ob-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--x-green), var(--x-amber)); border-radius: 99px; transition: width .6s cubic-bezier(.22,1,.36,1); }
.ob-doc.approved { border-color: rgba(34,197,94,.3); }
.ob-doc.rejected, .ob-doc.expired { border-color: rgba(248,113,113,.4); }
.ob-ic { color: var(--x-green); display: grid; place-items: center; }
.ob-ic svg { width: 24px; height: 24px; }
.ob-req { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--x-amber); background: rgba(251,191,36,.12); padding: 2px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }
.ob-locked { text-align: center; padding: 48px 20px; background: var(--p-surface); border: 1px dashed var(--p-border); border-radius: 18px; color: var(--p-muted); }
.ob-locked svg { color: var(--x-amber); margin-bottom: 8px; }
.ob-locked h3 { color: var(--p-text); margin: 0 0 6px; }
.ob-locked p { max-width: 440px; margin: 0 auto 16px; font-size: .88rem; }
.sb-link.ob-lock { opacity: .55; }
.sb-link.ob-lock::after { content: "🔒"; font-size: .7rem; margin-left: auto; }
#ob-docs-dot { background: var(--p-red); color: #fff; }
.ob-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.ob-grid { display: grid; grid-template-columns: minmax(96px, auto) repeat(7, minmax(38px, 1fr)); gap: 6px; margin-top: 6px; }
.ob-dayh, .ob-rowh { background: none; border: 0; color: var(--p-muted); font: 700 .74rem Inter, sans-serif; cursor: pointer; padding: 6px 2px; border-radius: 8px; }
.ob-dayh:hover, .ob-rowh:hover { color: var(--p-text); background: var(--p-surface2); }
.ob-rowh { text-align: left; padding: 6px 8px; }
.ob-rowh b { display: block; color: var(--p-text); font-size: .8rem; }
.ob-rowh small { color: var(--p-muted); font-weight: 500; font-size: .68rem; }
.ob-cell { aspect-ratio: 1.3; min-height: 38px; border-radius: 10px; border: 1.5px solid var(--p-border); background: var(--p-surface2); cursor: pointer;
  display: grid; place-items: center; color: #fff; transition: background .12s, border-color .12s, transform .08s; }
.ob-cell:hover { border-color: rgba(34,197,94,.6); }
.ob-cell:active { transform: scale(.94); }
.ob-cell.on { background: var(--p-green); border-color: var(--p-green); box-shadow: 0 6px 16px -8px rgba(34,197,94,.8); }
.ob-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ob-chips button { background: none; border: 0; color: inherit; cursor: pointer; font-size: .95rem; line-height: 1; padding: 0 0 0 4px; }
.ob-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 14px 0; margin-top: 8px;
  background: linear-gradient(transparent, var(--p-bg) 40%); }
@media (max-width: 640px) {
  .ob-grid { grid-template-columns: 74px repeat(7, 1fr); gap: 4px; }
  .ob-cell { min-height: 34px; border-radius: 8px; }
  .ob-rowh small { display: none; }
  .ob-head { align-items: flex-start; }
}
