:root {
  --paper: #f5f7ff;
  --panel: #fff;
  --panel-soft: #eef2ff;
  --panel-warm: #fff4dd;
  --ink: #0b1234;
  --heading: #030a2f;
  --muted: #64708f;
  --line: #d9def0;
  --line-strong: #c5cde6;
  --teal: #3527e8;
  --teal-dark: #16106f;
  --violet: #7b35f6;
  --coral: #d2495d;
  --leaf: #11766f;
  --gold: #a27417;
  --shadow: 0 14px 36px rgba(7, 14, 45, 0.09);
  --brand-gradient: linear-gradient(135deg, #030a2f 0%, #3325e8 48%, #8a38f5 100%);
  color-scheme: light;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  background: linear-gradient(180deg, #fbfcff 0%, var(--paper) 100%);
  color: var(--ink);
  font-family:
    Inter, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar,
.brand,
.top-actions,
.role-switch,
.inline-actions,
.section-title,
.surface-title,
.queue-row,
.confirmation-bar,
.phone-header,
.composer {
  display: flex;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(197, 205, 230, 0.82);
  gap: 20px;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(53, 39, 232, 0.18);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(53, 39, 232, 0.12);
  display: grid;
  height: 48px;
  justify-items: center;
  overflow: hidden;
  width: 48px;
}

.brand-mark img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.48);
  width: 100%;
}

.brand h1,
.surface-title h2,
.panel h2,
.panel h3,
.offering-detail h2,
.phone-detail h3,
.mobile-work-card h3 {
  color: var(--heading);
  margin: 0;
}

.brand h1 {
  font-size: 22px;
  line-height: 1;
}

.eyebrow {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.top-actions {
  align-items: center;
  gap: 10px;
}

.role-switch {
  background: #f0f2ff;
  border: 1px solid var(--line);
  border-radius: 7px;
  gap: 3px;
  padding: 3px;
}

.role-tab,
.ghost-button,
.primary-button,
.muted-button,
.danger-button,
.filter-chip,
.text-button {
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 12px;
  transition:
    background 150ms ease,
    border 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.role-tab {
  background: transparent;
  color: var(--muted);
  min-width: 82px;
}

.role-tab.is-active,
.primary-button {
  background: var(--brand-gradient);
  border-color: rgba(53, 39, 232, 0.22);
  box-shadow: 0 10px 22px rgba(53, 39, 232, 0.18);
  color: #fff;
}

.filter-chip.is-active {
  background: var(--brand-gradient);
  border-color: rgba(53, 39, 232, 0.2);
  color: #fff;
}

.ghost-button,
.muted-button,
.filter-chip {
  background: #fff;
  border-color: var(--line);
  color: var(--heading);
}

.danger-button {
  background: #fff0ed;
  border-color: #efc1bb;
  color: #a7342e;
}

.text-button {
  background: transparent;
  color: var(--violet);
  font-weight: 800;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
}

.role-tab:hover,
.ghost-button:hover,
.primary-button:hover,
.muted-button:hover,
.danger-button:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  filter: brightness(0.95);
}

.workspace {
  margin: 0 auto;
  max-width: 1660px;
  padding: 16px 20px 34px;
}

.workspace.is-client {
  max-width: none;
  padding: 0;
}

.workspace > *,
.panel,
.client-main,
.client-grid > *,
.template-row > *,
.admin-worker-card > *,
.chat-pane {
  min-width: 0;
}

.panel,
.client-kpis article,
.phone-detail,
.ops-console {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.notice,
.phone-toast {
  background: #eef2ff;
  border: 1px solid #c7d0ff;
  border-radius: 7px;
  color: var(--teal-dark);
  padding: 11px 13px;
}

.demo-drawer {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(17, 31, 39, 0.2);
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 16px;
  position: fixed;
  right: 18px;
  top: 92px;
  width: min(420px, calc(100vw - 36px));
  z-index: 40;
}

.demo-drawer-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.demo-drawer-head h2 {
  color: var(--heading);
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.demo-scorecard {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-scorecard article {
  background: #f6f8f8;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 10px;
}

.demo-scorecard span,
.demo-scenario-list span,
.demo-scenario-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.demo-scorecard strong {
  color: var(--heading);
  font-size: 26px;
  line-height: 1;
}

.demo-scenario-list {
  display: grid;
  gap: 8px;
}

.demo-scenario-list button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--heading);
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 12px;
  text-align: left;
}

.demo-scenario-list button:hover {
  background: #f0f3ff;
  border-color: #b7c1ff;
}

.demo-scenario-list strong {
  color: var(--heading);
  font-size: 15px;
}

.demo-scenario-list small {
  line-height: 1.45;
}

.demo-discussion-card {
  background: #faf7ef;
  border: 1px solid #ead9b3;
  border-radius: 7px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.demo-discussion-card strong {
  color: var(--heading);
}

.demo-discussion-card p {
  color: var(--muted);
  line-height: 1.5;
}

.empty-state {
  background: #fafbfb;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  display: grid;
  gap: 5px;
  padding: 16px;
}

.empty-state strong {
  color: var(--heading);
}

.empty-state p,
.surface-title p,
.panel p,
.quiet-copy,
.phone-detail p,
.mobile-job-card p,
.mobile-job-card small,
.mobile-work-card p {
  color: var(--muted);
  line-height: 1.5;
}

.inline-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.stack,
.queue-list,
.compact-list,
.template-list,
.admin-worker-list,
.attendance-list,
.mobile-work-list,
.search-rail {
  display: grid;
  gap: 12px;
}

.pill,
.status-pill,
.skill-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 9px;
}

.pill {
  background: var(--panel-soft);
  color: var(--teal-dark);
}

.pill.warm {
  background: var(--panel-warm);
  color: var(--gold);
}

.status-pill,
.skill-pill {
  background: #f0f4f5;
  color: var(--muted);
}

.status-pill.good {
  background: #e7f5dc;
  color: var(--leaf);
}

.status-pill.busy {
  background: var(--panel-warm);
  color: var(--gold);
}

.status-pill.alert {
  background: #fff0ed;
  color: var(--coral);
}

.skill-pill {
  border: 1px solid var(--line);
  color: var(--heading);
}

.section-title,
.surface-title {
  align-items: flex-start;
  gap: 14px;
  justify-content: space-between;
}

.section-title {
  margin-bottom: 14px;
}

.section-title h3 {
  font-size: 18px;
}

.surface-title {
  margin-bottom: 16px;
}

.surface-title h2 {
  font-size: 30px;
  line-height: 1.15;
}

.surface-title p {
  margin-top: 6px;
}

label,
.microcopy,
dt,
.client-table-row.is-head,
.client-kpis span,
.wallet-sheet span,
.calendar-day span,
.detail-definition dt,
.paper-preview dt,
.admin-worker-card dt,
.mini-worker-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 6px;
}

input,
select,
textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(53, 39, 232, 0.15);
}

input[type="checkbox"] {
  min-height: 16px;
  width: 16px;
}

.form-panel {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-two {
  grid-column: span 2;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  color: var(--heading);
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 11px;
}

.segmented-control {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
}

.segmented-control button {
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  font-weight: 900;
  min-height: 34px;
  padding: 7px 10px;
}

.segmented-control button.is-active {
  background: var(--teal);
  color: #fff;
}

.stepper,
.mini-stepper {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.stepper li,
.mini-stepper li {
  background: #f1f3f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  min-height: 40px;
  padding: 11px;
}

.stepper li.done,
.mini-stepper li.done {
  background: #edf0ff;
  border-color: #c4ccff;
  color: var(--teal-dark);
}

.stepper li.active,
.mini-stepper li.active {
  background: #fff;
  border-color: var(--teal);
  color: var(--heading);
}

.form-stage {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 11px;
  padding: 14px;
}

.template-review-grid {
  background: #f5f2fb;
  border: 1px solid #d9d0ee;
  border-radius: 7px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 0.55fr) minmax(260px, 1fr);
  padding: 14px;
}

.template-review-grid article {
  display: grid;
  gap: 7px;
}

.template-review-grid span,
.photo-slot span,
.correction-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.template-review-grid strong {
  color: #473879;
  font-size: 30px;
}

.template-review-grid ul {
  color: var(--heading);
  line-height: 1.55;
  margin: 0;
  padding-left: 19px;
}

.photo-strip {
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(100px, 0.55fr));
}

.photo-slot {
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
  place-content: center;
  text-align: center;
}

.photo-slot.featured {
  background:
    linear-gradient(90deg, rgba(21, 47, 53, 0.74), rgba(21, 47, 53, 0.24)),
    url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=720&q=70")
      center/cover;
  border-style: solid;
  color: #fff;
  place-content: end start;
  text-align: left;
}

.photo-slot.featured span,
.photo-slot.featured small {
  color: #fff;
}

.map-pin {
  background:
    linear-gradient(135deg, rgba(53, 39, 232, 0.15), rgba(255, 244, 221, 0.68)),
    repeating-linear-gradient(135deg, #eef4f4 0 22px, #f8faf9 22px 44px);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--heading);
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 14px;
  place-content: center start;
}

.map-pin b::before {
  color: var(--coral);
  content: "● ";
}

/* Employer management */
.client-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: calc(100vh - 75px);
}

.client-sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - 75px);
  padding: 18px 12px;
  position: sticky;
  top: 75px;
}

.store-chip {
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  padding: 12px;
}

.store-chip span {
  color: var(--muted);
  font-size: 12px;
}

.client-nav,
.sidebar-support {
  align-content: start;
  display: grid;
  gap: 3px;
}

.client-nav-button {
  background: transparent;
  border: 0;
  border-left: 4px solid transparent;
  border-radius: 4px;
  color: var(--heading);
  min-height: 40px;
  padding: 10px 12px;
  text-align: left;
}

.client-nav-button.is-active {
  background: #eef1ff;
  border-left-color: var(--teal);
  color: var(--teal-dark);
  font-weight: 900;
}

.client-nav-button.subdued {
  color: var(--muted);
  font-size: 13px;
}

.client-main {
  align-content: start;
  display: grid;
  gap: 16px;
  padding: 24px clamp(16px, 2vw, 30px) 38px;
}

.client-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-kpis article {
  box-shadow: none;
  display: grid;
  gap: 9px;
  min-height: 108px;
  padding: 16px;
}

.client-kpis strong {
  color: var(--heading);
  font-size: 31px;
  line-height: 1;
}

.alert-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.alert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--heading);
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 13px;
  text-align: left;
}

.alert-card.has-count {
  background: linear-gradient(180deg, #fff, #fff8eb);
  border-color: #ead39f;
}

.alert-card span,
.alert-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.alert-card strong {
  color: var(--heading);
  font-size: 32px;
  line-height: 1;
}

.alert-card.has-count strong {
  color: var(--gold);
}

.client-grid {
  display: grid;
  gap: 16px;
}

.client-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-grid.detail {
  align-items: start;
  grid-template-columns: minmax(560px, 1.2fr) minmax(360px, 0.8fr);
}

.calendar-strip {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 11px;
  min-height: 142px;
  padding: 12px;
}

.calendar-day.has-shift {
  background: linear-gradient(180deg, #fff, #f0f3ff);
  border-color: #bcc5ff;
}

.calendar-day strong {
  color: var(--heading);
  font-size: 19px;
}

.task-list {
  display: grid;
  gap: 8px;
}

.task-list button,
.compact-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--heading);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 54px;
  padding: 11px 13px;
  text-align: left;
}

.task-list span,
.compact-row b {
  background: var(--panel-warm);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  padding: 6px 8px;
}

.compact-row span,
.client-table-row span:first-child {
  display: grid;
  gap: 3px;
}

.compact-row small,
.client-table-row small,
.template-row small {
  color: var(--muted);
}

.assist-banner {
  align-items: center;
  background: #f1eefb;
  border: 1px solid #d6cdef;
  border-radius: 6px;
  color: #473879;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.assist-banner span {
  line-height: 1.4;
}

.template-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 12px;
  grid-template-columns: 108px minmax(220px, 1fr) auto;
  padding: 12px;
}

.template-row.is-selected,
.client-table-row.is-selected {
  background: #f0f3ff;
  border-color: #b7c1ff;
}

.template-row img {
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  object-fit: cover;
  width: 108px;
}

.template-row strong {
  color: var(--heading);
  display: block;
  font-size: 16px;
}

.template-row p {
  font-size: 13px;
}

.paper-preview,
.offering-detail {
  align-self: start;
  display: grid;
  gap: 13px;
  position: sticky;
  top: 96px;
}

.paper-preview img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}

.paper-preview dl,
.detail-definition,
.admin-worker-card dl,
.phone-detail dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.paper-preview dl div,
.detail-definition div,
.phone-detail dl div {
  background: #fafbfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

dd {
  color: var(--heading);
  line-height: 1.45;
  margin: 4px 0 0;
}

.confirmation-bar {
  align-items: center;
  background: #faf7ef;
  border: 1px solid #ead9b3;
  border-radius: 6px;
  gap: 12px;
  justify-content: space-between;
  padding: 11px;
}

.confirmation-bar label,
.check-line {
  align-items: center;
  display: flex;
  gap: 7px;
}

.field-note {
  background: #f6f8f8;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  padding: 9px 10px;
}

.client-table {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  overflow: hidden;
}

.client-table-row {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  display: grid;
  gap: 10px;
  min-height: 64px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.client-table-row:last-child {
  border-bottom: 0;
}

.client-table-row.is-head {
  background: #f2f4f5;
  min-height: 42px;
}

.offerings-table .client-table-row {
  grid-template-columns: minmax(190px, 1.3fr) minmax(130px, 0.85fr) minmax(96px, 0.65fr) minmax(88px, 0.55fr) minmax(80px, 0.5fr) minmax(88px, 0.52fr);
}

.row-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.indicator-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.row-actions em {
  font-style: normal;
}

.offering-title-button {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: left;
}

.offering-filterbar {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.posting-editor-note,
.posting-guideline {
  background: #f0f7f5;
  border: 1px solid #cbd2ff;
  border-radius: 7px;
  display: grid;
  gap: 5px;
  padding: 13px;
}

.posting-editor-note strong,
.posting-guideline strong {
  color: var(--heading);
}

.posting-editor-note p,
.posting-guideline p {
  line-height: 1.5;
}

.posting-review {
  display: grid;
  gap: 12px;
}

.posting-review-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.posting-review-summary div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 12px;
}

.posting-review-summary span,
.posting-review-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.posting-review-summary strong {
  color: var(--heading);
  line-height: 1.35;
}

.posting-review-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.posting-review-list div {
  background: #fafbfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 11px;
}

.posting-guideline {
  background: #faf7ef;
  border-color: #ead9b3;
}

.posting-guideline label {
  align-items: center;
  background: #fff;
  border-radius: 5px;
  color: var(--heading);
  display: flex;
  gap: 8px;
  padding: 9px;
}

.status-tabs {
  align-items: center;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
}

.status-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  display: inline-flex;
  font-weight: 900;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
}

.status-tabs button b {
  background: #fff;
  border-radius: 999px;
  color: var(--heading);
  font-size: 11px;
  min-width: 21px;
  padding: 4px 6px;
}

.status-tabs button.is-active {
  background: var(--teal);
  color: #fff;
}

.status-tabs button.is-active b {
  color: var(--teal-dark);
}

.offering-calendar {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.offering-calendar-day {
  align-content: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 9px;
}

.offering-calendar-day.is-selected {
  background: #f0f3ff;
  border-color: #b3bdff;
}

.offering-calendar-day > button:first-child {
  background: transparent;
  border: 0;
  color: var(--heading);
  font-weight: 900;
  padding: 3px;
  text-align: left;
}

.calendar-shift {
  background: #fff;
  border: 1px solid #c3caff;
  border-radius: 5px;
  color: var(--heading);
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 8px;
  text-align: left;
}

.calendar-shift span,
.calendar-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.calendar-empty {
  background: #fafbfb;
  border-radius: 5px;
  padding: 8px;
}

.billing-table .client-table-row {
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 0.65fr) minmax(150px, 0.75fr) minmax(90px, 0.45fr);
}

.crumb {
  color: var(--violet);
  font-size: 14px;
  font-weight: 800;
}

.offering-cover {
  aspect-ratio: 16 / 7;
  border-radius: 6px;
  object-fit: cover;
}

.public-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-detail-grid article {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 10px;
  min-height: 176px;
  padding: 16px;
}

.public-detail-grid span {
  color: var(--muted);
  font-weight: 900;
}

.public-detail-grid strong {
  color: var(--heading);
  font-size: 23px;
}

.mini-worker-list {
  display: grid;
  gap: 6px;
}

.mini-worker-list div {
  align-items: center;
  background: #f6f8f8;
  border-radius: 5px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 7px;
}

.matched-worker-panel {
  display: grid;
  gap: 16px;
}

.match-grid {
  border: 1px solid var(--line);
  border-radius: 7px;
  min-width: 0;
  overflow-x: auto;
}

.match-grid-row {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  display: grid;
  gap: 12px;
  grid-template-columns: 66px minmax(200px, 1.15fr) 110px 118px minmax(142px, 0.7fr) 132px 98px 170px;
  min-width: 1100px;
  padding: 14px 16px;
}

.match-grid-row:last-child {
  border-bottom: 0;
}

.match-grid-row.is-head {
  background: #f2f4f5;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  min-height: 48px;
}

.match-check {
  align-items: center;
  display: flex;
  gap: 6px;
}

.match-check input {
  min-height: 16px;
  width: 16px;
}

.match-check span,
.match-grid-row small,
.match-clock,
.quiet-inline {
  color: var(--muted);
  font-size: 12px;
}

.matched-worker-cell,
.match-grid-row > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.matched-worker-cell button {
  background: transparent;
  border: 0;
  color: #1b70c9;
  font-weight: 900;
  padding: 0;
  text-align: left;
  text-decoration: underline;
}

.badge-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge-token {
  background: #fff2da;
  border: 1px solid #efcf94;
  border-radius: 999px;
  color: #9b6410;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 7px;
}

.match-clock {
  line-height: 1.45;
}

.match-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cancel-sheet {
  background: #fff8f6;
  border: 1px solid #efc1bb;
  border-radius: 7px;
  display: grid;
  gap: 13px;
  padding: 16px;
}

.cancel-targets {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 7px;
  padding: 12px;
}

.cancel-targets label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.cancel-targets label span {
  color: var(--muted);
  font-size: 12px;
}

.check-select {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--heading);
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
}

.question-sheet,
.cancel-history {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.answer-list {
  display: grid;
  gap: 8px;
}

.answer-list article {
  background: #fafbfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  padding: 11px;
}

.answer-list div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.answer-list p {
  line-height: 1.45;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edit-sheet {
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.edit-sheet h3,
.review-panel h3,
.worker-detail-panel h3 {
  color: var(--heading);
  margin: 0;
}

.change-list {
  display: grid;
  gap: 8px;
}

.change-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.change-list span,
.change-list small {
  color: var(--muted);
}

.change-list span {
  font-size: 12px;
  font-weight: 900;
}

.change-list span b {
  background: var(--panel-warm);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  margin-left: 4px;
  padding: 4px 7px;
}

.change-list strong {
  color: var(--heading);
}

.worker-filters,
.filter-grid,
.search-form {
  display: grid;
  gap: 12px;
}

.search-form {
  align-items: end;
  grid-template-columns: minmax(220px, 420px) auto;
  justify-content: start;
}

.filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 7px;
}

.admin-worker-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 14px;
  grid-template-columns: 54px minmax(230px, 1fr) minmax(320px, 0.9fr) max-content;
  padding: 14px;
}

.admin-worker-card > .muted-button {
  justify-self: end;
  white-space: nowrap;
}

.worker-detail-panel,
.review-panel {
  align-content: start;
  display: grid;
  gap: 13px;
}

.worker-detail-panel .avatar {
  flex: 0 0 auto;
}

.worker-timeline {
  display: grid;
  gap: 8px;
}

.worker-timeline article {
  background: #fafbfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.worker-timeline b {
  color: var(--heading);
}

.worker-timeline small {
  color: var(--muted);
}

.queue-card.is-selected {
  background: #f0f3ff;
  border-color: #b7c1ff;
}

.avatar {
  align-items: center;
  background: var(--heading);
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-weight: 900;
  height: 54px;
  justify-items: center;
  width: 54px;
}

.admin-worker-card strong {
  color: var(--heading);
  display: block;
  font-size: 17px;
}

.admin-worker-card dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: min(100%, 320px);
}

.admin-worker-card dd {
  font-weight: 900;
}

.qr-management {
  align-items: center;
  background: linear-gradient(135deg, #fff, #f0f2ff);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(260px, 1fr) 230px;
}

.qr-management > div:first-child {
  display: grid;
  gap: 11px;
}

.qr-code {
  background:
    linear-gradient(90deg, var(--heading) 13%, transparent 13%) 0 0/24px 24px,
    linear-gradient(var(--heading) 13%, transparent 13%) 0 0/24px 24px,
    linear-gradient(90deg, transparent 76%, var(--heading) 76%) 0 0/24px 24px,
    linear-gradient(transparent 76%, var(--heading) 76%) 0 0/24px 24px,
    #fff;
  border: 10px solid #fff;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  height: 220px;
  place-items: center;
  width: 220px;
}

.qr-code strong {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--heading);
  max-width: 150px;
  overflow-wrap: anywhere;
  padding: 8px;
  text-align: center;
}

.match-card,
.queue-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 11px;
  padding: 13px;
}

.attendance-row {
  align-items: center;
  grid-template-columns: minmax(200px, 1fr) minmax(126px, 0.7fr) minmax(110px, 0.65fr) minmax(110px, 0.65fr) auto minmax(130px, 0.8fr);
}

.attendance-row strong,
.queue-card h3 {
  color: var(--heading);
}

.queue-row {
  align-items: flex-start;
  gap: 10px;
  justify-content: space-between;
}

.ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger-list li {
  align-items: center;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 42px;
}

.ledger-list li:last-child {
  border-bottom: 0;
}

.message-layout {
  display: grid;
  gap: 0;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 560px;
  padding: 0;
  overflow: hidden;
}

.thread-list {
  background: #f7f8f8;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 0;
  align-content: start;
}

.thread-search {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.thread-list button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px;
  text-align: left;
}

.thread-list button small {
  color: var(--muted);
}

.thread-list button.is-selected {
  background: #edf0ff;
  color: var(--teal-dark);
}

.chat-pane {
  background: #fff;
  display: grid;
  gap: 11px;
  grid-template-rows: auto minmax(340px, 1fr) auto;
  padding: 22px;
}

.chat-topbar {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  padding-bottom: 10px;
}

.chat-topbar span {
  color: var(--muted);
}

.chat-stream {
  align-content: end;
  display: grid;
  gap: 11px;
  overflow: auto;
}

.chat-bubble {
  border-radius: 7px;
  display: grid;
  gap: 5px;
  max-width: 560px;
  padding: 12px;
}

.chat-bubble.employer {
  background: #e8f6f2;
  justify-self: end;
}

.chat-bubble.worker {
  background: #f2f3f5;
}

.chat-bubble time {
  color: var(--muted);
  font-size: 11px;
}

.composer {
  gap: 8px;
  margin-top: 12px;
}

.rating-toggle {
  border: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.rating-toggle legend {
  grid-column: 1 / -1;
  margin: 0;
}

.rating-toggle label {
  align-items: center;
  background: #f4f7f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
}

.store-sheet {
  max-width: 760px;
}

/* Worker app */
.worker-stage {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(360px, 440px) minmax(320px, 520px);
  justify-content: center;
  min-width: 0;
  padding: 18px;
}

.worker-stage > *,
.phone-shell,
.phone-detail,
.mobile-job-card,
.mobile-job-card > div,
.phone-header > * {
  min-width: 0;
}

.phone-shell {
  background: #fff;
  border: 1px solid rgba(197, 205, 230, 0.95);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(7, 14, 45, 0.16);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 128px);
  max-width: 100%;
  min-height: 720px;
  overflow: hidden;
  width: 100%;
}

.phone-toast {
  border-radius: 0;
  border-width: 0 0 1px;
}

.phone-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 8px;
  justify-content: space-between;
  min-height: 66px;
  padding: 17px 18px;
}

.phone-header strong {
  color: var(--heading);
  font-size: 24px;
}

.search-rail,
.mobile-work-list {
  align-content: start;
  background: #f6f7ff;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}

.phone-search-panel {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 14px;
}

.phone-search-panel div {
  background: #f6f8f8;
  border-radius: 7px;
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px;
}

.phone-search-panel span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.phone-search-panel strong {
  color: var(--heading);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.mobile-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.mobile-filter-row button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 11px;
}

.mobile-filter-row button.is-active {
  background: var(--heading);
  border-color: var(--heading);
  color: #fff;
}

.mobile-job-card,
.mobile-work-card,
.wallet-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 11px;
  overflow: hidden;
}

.mobile-job-card img {
  aspect-ratio: 16 / 8;
  object-fit: cover;
  width: 100%;
}

.mobile-job-card.is-locked {
  background: #fbfbfb;
}

.mobile-job-card.is-locked img {
  filter: saturate(0.6);
}

.mobile-job-card.is-locked .eligibility-line {
  background: #fff0ed;
  color: #a7342e;
}

.eligibility-line {
  background: #eef2ff;
  border-radius: 6px;
  color: var(--teal-dark);
  display: block;
  font-weight: 900;
  line-height: 1.45;
  padding: 8px 9px;
}

.mobile-job-card > div,
.mobile-work-card {
  padding: 13px;
}

.mobile-job-card .job-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.mobile-job-card .job-head strong {
  color: var(--heading);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.mobile-job-card .job-head span {
  background: var(--panel-warm);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 900;
  padding: 7px 9px;
  white-space: nowrap;
}

.job-reward-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-reward-grid span {
  background: #f6f8f8;
  border-radius: 6px;
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 900;
  gap: 4px;
  min-height: 54px;
  padding: 8px;
}

.job-reward-grid b {
  color: var(--heading);
  font-size: 13px;
}

.job-reward-grid.detail-grid span {
  background: #f3f7f7;
}

.job-meta {
  color: var(--muted);
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.job-meta b {
  color: var(--heading);
  font-size: 13px;
}

.detail-payline {
  align-items: center;
  background: #fff4dd;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 11px;
}

.detail-payline strong {
  color: var(--heading);
  font-size: 20px;
}

.detail-payline span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.apply-stage {
  display: grid;
  gap: 12px;
}

.apply-stage strong {
  color: var(--heading);
}

.apply-stage dl,
.settlement-summary {
  display: grid;
  gap: 8px;
  margin: 0;
}

.apply-stage dl div,
.settlement-summary div {
  background: #fafbfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.belonging-checks {
  display: grid;
  gap: 7px;
}

.belonging-checks label {
  align-items: center;
  background: #f6f8f8;
  border-radius: 6px;
  color: var(--heading);
  display: flex;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px;
}

.belonging-checks b,
.policy-points span {
  background: #edf0ff;
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 11px;
  padding: 5px 8px;
}

.policy-points {
  display: grid;
  gap: 6px;
}

.policy-points span {
  border-radius: 6px;
  display: block;
  line-height: 1.35;
}

.work-buckets {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-buckets span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 9px 5px;
  text-align: center;
}

.work-buckets span.is-active {
  background: #edf0ff;
  border-color: #c4ccff;
  color: var(--teal-dark);
}

.payment-banner {
  align-items: center;
  background: #fff4dd;
  border: 1px solid #ead9b3;
  border-radius: 7px;
  color: var(--heading);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 54px;
  padding: 11px;
  text-align: left;
}

.payment-banner b {
  color: var(--gold);
}

.penalty-alert {
  background: #fff0ed;
  border: 1px solid #efc1bb;
  border-radius: 6px;
  display: grid;
  gap: 5px;
  padding: 11px;
}

.penalty-alert strong {
  color: #a7342e;
}

.wallet-ledger {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
}

.wallet-ledger article {
  align-items: center;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-height: 42px;
}

.wallet-ledger article:last-child {
  border-bottom: 0;
}

.work-steps {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.work-steps span {
  background: #eef1f3;
  border-radius: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  min-height: 42px;
  padding: 8px 5px;
  text-align: center;
}

.work-steps span.done {
  background: #e8edff;
  color: var(--teal-dark);
}

.correction-sheet {
  background: #fafbfb;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 11px;
  margin-top: 4px;
  padding: 12px;
}

.choice-row {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.correction-preview {
  align-items: center;
  background: #fff4dd;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.correction-preview b {
  color: var(--gold);
}

.phone-tabs {
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phone-tabs button {
  background: #fff;
  border: 0;
  color: var(--muted);
  font-weight: 900;
  min-height: 64px;
}

.phone-tabs button.is-active {
  color: var(--teal);
}

.phone-detail {
  align-self: start;
  display: grid;
  gap: 13px;
  padding: 18px;
  position: sticky;
  top: 96px;
}

.phone-detail img {
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  object-fit: cover;
}

.apply-sheet {
  border-color: #a6d5cf;
}

.application-checks {
  background: #f6f8f8;
  border-radius: 6px;
  display: grid;
  gap: 8px;
  padding: 11px;
}

.application-checks label {
  align-items: center;
  display: flex;
  gap: 7px;
}

.wallet-sheet {
  align-content: start;
  margin: 14px;
  padding: 18px;
}

.wallet-sheet strong {
  color: var(--heading);
  font-size: 38px;
}

.signal-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal-grid div {
  background: #f4f7f8;
  border-radius: 6px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.signal-grid b {
  color: var(--heading);
  font-size: 24px;
}

/* Operations */
.ops-console {
  display: grid;
  gap: 16px;
  margin: 12px auto;
  max-width: 1280px;
  padding: 24px;
}

@media (max-width: 1240px) {
  .client-grid.detail {
    grid-template-columns: 1fr;
  }

  .paper-preview,
  .offering-detail,
  .phone-detail {
    position: static;
  }

  .calendar-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .attendance-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .client-shell,
  .client-grid.two,
  .message-layout {
    grid-template-columns: 1fr;
  }

  .worker-stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .client-sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 0;
    position: static;
  }

  .client-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .client-nav-button {
    border-bottom: 3px solid transparent;
    border-left: 0;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .client-nav-button.is-active {
    border-bottom-color: var(--teal);
  }

  .sidebar-support {
    display: none;
  }

  .client-kpis,
  .alert-strip,
  .filter-grid,
  .qr-management,
  .offering-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .posting-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-row,
  .admin-worker-card {
    grid-template-columns: 1fr;
  }

  .admin-worker-card > .muted-button {
    justify-self: start;
  }

  .client-kpis article {
    min-height: 108px;
  }

  .admin-worker-card dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar,
  .top-actions,
  .surface-title,
  .section-title,
  .confirmation-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    min-width: 0;
    width: 100%;
  }

  .demo-drawer {
    bottom: 12px;
    max-height: calc(100vh - 24px);
    top: auto;
  }

  .demo-scorecard {
    grid-template-columns: 1fr;
  }

  .role-switch {
    width: 100%;
  }

  .role-tab {
    flex: 1;
    min-width: 0;
  }

  .workspace,
  .worker-stage {
    padding: 12px;
  }

  .client-main {
    padding: 16px 12px 28px;
  }

  .surface-title h2 {
    font-size: 25px;
  }

  .client-kpis,
  .alert-strip,
  .calendar-strip,
  .form-grid,
  .photo-strip,
  .template-review-grid,
  .public-detail-grid,
  .search-form,
  .filter-grid,
  .qr-management,
  .offering-calendar,
  .phone-search-panel,
  .billing-table .client-table-row,
  .offerings-table .client-table-row,
  .attendance-row,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .offering-filterbar {
    align-items: stretch;
    flex-direction: column;
  }

  .posting-review-summary {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: auto;
  }

  .qr-code {
    height: 190px;
    width: 190px;
  }

  .phone-shell {
    border-radius: 18px;
    min-height: calc(100vh - 126px);
    width: min(100%, calc(100vw - 48px));
  }

  .phone-detail {
    width: min(100%, calc(100vw - 48px));
  }

  .phone-header {
    flex-wrap: wrap;
  }

  .phone-header .filter-chip {
    max-width: 100%;
  }

  .mobile-job-card .job-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-job-card .job-head span {
    justify-self: start;
  }

  .public-detail-grid article {
    min-height: 0;
  }

  .admin-worker-card dl,
  .job-reward-grid,
  .work-steps,
  .stepper,
  .mini-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Brainverse polish and layout fixes */
.brand h1 {
  color: var(--heading);
  font-size: 23px;
  font-weight: 950;
}

.ghost-button:hover,
.muted-button:hover,
.filter-chip:hover {
  border-color: #aeb9ff;
  color: var(--teal-dark);
}

.client-grid.detail.worker-admin-grid {
  grid-template-columns: minmax(640px, 1fr) minmax(340px, 420px);
}

.phone-header,
.phone-search-panel,
.phone-toast {
  flex: 0 0 auto;
}

.wallet-sheet {
  flex: 1 1 auto;
}

.mobile-filter-row button.is-active {
  background: var(--brand-gradient);
  border-color: rgba(53, 39, 232, 0.22);
  color: #fff;
}

.mobile-job-card,
.mobile-work-card,
.phone-detail,
.panel,
.client-kpis article {
  border-color: rgba(197, 205, 230, 0.94);
}

.phone-search-panel div,
.job-reward-grid span,
.signal-grid div {
  background: #f5f7ff;
}

@media (max-width: 1240px) {
  .client-grid.detail.worker-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand-mark {
    height: 42px;
    width: 42px;
  }

  .admin-worker-card > .muted-button {
    justify-self: stretch;
    width: 100%;
  }
}


/* Demo-grade Brainverse refinement */
.topbar {
  box-shadow: 0 10px 30px rgba(7, 14, 45, 0.06);
}

.topbar::after {
  background: linear-gradient(90deg, transparent, rgba(53, 39, 232, 0.38), rgba(123, 53, 246, 0.28), transparent);
  bottom: -1px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
}

.surface-title {
  background: transparent;
  border-bottom: 1px solid rgba(197, 205, 230, 0.82);
  padding: 12px 0 16px;
}

.surface-title h2 {
  font-weight: 950;
}

.panel,
.client-kpis article,
.phone-detail,
.ops-console {
  border-radius: 10px;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    linear-gradient(135deg, rgba(53, 39, 232, 0.08), rgba(255, 255, 255, 0));
}

.client-kpis article {
  background:
    linear-gradient(180deg, #fff, #fbfcff),
    linear-gradient(135deg, rgba(53, 39, 232, 0.1), rgba(123, 53, 246, 0.04));
  overflow: hidden;
  position: relative;
}

.client-kpis article::before,
.alert-card::before {
  background: var(--brand-gradient);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.client-kpis article strong,
.demo-scorecard strong,
.alert-card strong {
  background: linear-gradient(135deg, var(--heading), var(--teal), var(--violet));
  background-clip: text;
  color: transparent;
}

.alert-card {
  overflow: hidden;
  position: relative;
}

.alert-card.has-count {
  background: linear-gradient(180deg, #fff, #f9f6ff);
  border-color: #c9d0ff;
  box-shadow: 0 12px 30px rgba(53, 39, 232, 0.08);
}

.task-list button,
.compact-row,
.calendar-day,
.mobile-job-card,
.mobile-work-card,
.worker-timeline article,
.answer-list article,
.change-list article,
.queue-card,
.match-card {
  transition:
    border 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.task-list button:hover,
.compact-row:hover,
.calendar-day:hover,
.mobile-job-card:hover,
.mobile-work-card:hover,
.worker-timeline article:hover,
.queue-card:hover,
.match-card:hover {
  border-color: #b3bdff;
  box-shadow: 0 12px 28px rgba(7, 14, 45, 0.08);
  transform: translateY(-1px);
}

.demo-drawer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 255, 0.96)),
    linear-gradient(135deg, rgba(53, 39, 232, 0.08), transparent 42%);
  border-color: rgba(197, 205, 230, 0.9);
  box-shadow: 0 30px 90px rgba(7, 14, 45, 0.22);
}

.demo-drawer::before {
  background: var(--brand-gradient);
  border-radius: 8px 8px 0 0;
  content: "";
  height: 4px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.demo-scorecard article,
.demo-scenario-list button,
.demo-discussion-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(197, 205, 230, 0.9);
}

.demo-scenario-list button {
  grid-template-columns: 1fr auto;
  position: relative;
}

.demo-scenario-list button span,
.demo-scenario-list button small {
  grid-column: 1 / -1;
}

.demo-scenario-list button span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.demo-scenario-list button span b {
  background: #eef2ff;
  border: 1px solid #c7d0ff;
  border-radius: 999px;
  color: var(--teal);
  font-size: 10px;
  padding: 4px 7px;
}

.demo-scenario-list button::after {
  color: var(--teal);
  content: "→";
  font-weight: 900;
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

.client-sidebar {
  background:
    linear-gradient(180deg, #fff, #f7f8ff),
    linear-gradient(135deg, rgba(53, 39, 232, 0.08), transparent);
}

.store-chip {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 255, 0.9)),
    var(--brand-gradient);
  border-color: rgba(197, 205, 230, 0.94);
  padding-left: 50px;
  position: relative;
}

.store-chip img {
  background: #fff;
  border: 1px solid rgba(53, 39, 232, 0.14);
  border-radius: 10px;
  height: 30px;
  left: 12px;
  object-fit: cover;
  position: absolute;
  top: 12px;
  transform: scale(1.35);
  width: 30px;
}

.client-nav-button {
  font-weight: 800;
}

.client-nav-button.is-active {
  box-shadow: inset 4px 0 0 var(--teal);
}

.phone-shell {
  background:
    linear-gradient(180deg, #fff, #fbfcff),
    linear-gradient(135deg, rgba(53, 39, 232, 0.09), rgba(123, 53, 246, 0.04));
  position: relative;
}

.phone-brand-rail {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  min-height: 50px;
  overflow: hidden;
  padding: 8px 18px;
}

.phone-brand-rail img {
  background: #fff;
  border: 1px solid rgba(53, 39, 232, 0.12);
  border-radius: 8px;
  display: block;
  flex: 0 0 32px;
  height: 32px;
  object-fit: contain;
  transform: none;
  width: 32px;
}

.phone-brand-rail span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.phone-header {
  background: #fff;
}

.detail-payline,
.payment-banner,
.confirmation-bar {
  background: linear-gradient(135deg, #fff7e6, #f5f0ff);
}

.skill-pill,
.status-pill,
.pill {
  border: 1px solid rgba(197, 205, 230, 0.9);
}

.status-pill.good {
  background: #e9fbf8;
  color: #0f766e;
}

.ops-console {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 255, 0.96)),
    linear-gradient(135deg, rgba(53, 39, 232, 0.08), transparent 44%);
}

@media (max-width: 680px) {
  .surface-title {
    padding: 14px;
  }

  .store-chip {
    padding-left: 48px;
  }
}


/* Phase 0 review polish */
.brand-tagline {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
  white-space: nowrap;
}

.demo-drawer {
  width: min(468px, calc(100vw - 36px));
}

.demo-drawer-copy {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 7px;
}

.demo-readiness,
.demo-resource-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(197, 205, 230, 0.9);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.demo-readiness h3,
.demo-resource-card strong {
  color: var(--heading);
  margin: 0;
}

.demo-readiness ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-readiness li {
  align-items: start;
  display: grid;
  gap: 8px;
  grid-template-columns: 86px minmax(0, 1fr);
}

.demo-readiness li strong {
  color: var(--teal-dark);
  font-size: 12px;
}

.demo-readiness li span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.demo-resource-card div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-resource-card a {
  background: #f5f7ff;
  border: 1px solid rgba(197, 205, 230, 0.95);
  border-radius: 7px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  min-height: 38px;
  padding: 9px 10px;
  text-align: center;
  text-decoration: none;
}

.demo-resource-card a:hover {
  background: #eef2ff;
  border-color: #aeb9ff;
}

@media (max-width: 680px) {
  .brand-tagline {
    white-space: normal;
  }

  .demo-readiness li,
  .demo-resource-card div {
    grid-template-columns: 1fr;
  }
}
