.mobile-demo-page {
  display: grid;
  min-height: calc(100vh - 122px);
  place-items: start center;
  padding: 12px 0 36px;
}

.mobile-device {
  position: relative;
  isolation: isolate;
  width: 390px;
  height: min(780px, calc(100vh - 118px));
  min-height: 620px;
  overflow: hidden;
  border: 9px solid #18191c;
  border-radius: 42px;
  background: #18191c;
  box-shadow:
    0 28px 70px rgba(16, 24, 40, 0.2),
    0 3px 10px rgba(16, 24, 40, 0.14);
}

.mobile-speaker {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 3;
  width: 76px;
  height: 21px;
  border-radius: 999px;
  background: #18191c;
  transform: translateX(-50%);
}

.mobile-screen {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 32px;
  background: var(--background);
  clip-path: inset(0 round 32px);
  scrollbar-width: none;
}

.mobile-screen::-webkit-scrollbar {
  display: none;
}

.mobile-home-indicator {
  position: absolute;
  bottom: 7px;
  left: 50%;
  z-index: 4;
  width: 112px;
  height: 4px;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.72);
  transform: translateX(-50%);
}

.mobile-app-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 74px 1fr 74px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  padding: 12px 16px 8px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.mobile-brand-bar {
  position: relative;
  z-index: 2;
  display: flex;
  height: 62px;
  align-items: center;
  overflow: hidden;
  border-radius: 31px 31px 0 0;
  background: #18191c;
  padding: 8px 18px;
}

.mobile-brand-bar img {
  display: block;
  width: 84px;
  height: auto;
  object-fit: contain;
}

.mobile-app-header > strong {
  font-size: 14px;
}

.mobile-app-header-hero {
  position: relative;
  display: block;
  min-height: 190px;
  border: 0;
  background: linear-gradient(145deg, var(--primary-active), var(--primary));
  padding: 20px 22px 24px;
  color: #fff;
  text-align: left;
}

.mobile-app-header-hero h2 {
  margin-top: 3px;
  color: #fff;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.mobile-overline {
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-worker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 25px;
}

.mobile-worker > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  font-size: 11px;
  font-weight: 800;
}

.mobile-worker div {
  display: flex;
  flex-direction: column;
}

.mobile-worker strong {
  font-size: 13px;
}

.mobile-worker small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.mobile-app-content {
  padding: 18px 16px 32px;
}

.mobile-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.mobile-section-heading div {
  display: flex;
  flex-direction: column;
}

.mobile-section-heading span {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.mobile-section-heading strong {
  margin-top: 3px;
  font-size: 12px;
}

.mobile-section-heading svg {
  width: 18px;
  color: var(--primary);
}

.mobile-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mobile-schedule-day {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 18px;
  align-items: center;
  min-height: 77px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.mobile-schedule-day.is-assigned {
  cursor: pointer;
}

.mobile-schedule-day.is-assigned:hover {
  border-color: var(--primary-muted);
  background: var(--primary-subtle);
}

.mobile-schedule-day.is-empty {
  opacity: 0.68;
}

.mobile-day-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--border);
}

.mobile-day-date strong {
  color: var(--text-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.mobile-day-date small {
  margin-top: 3px;
  font-size: 20px;
  font-weight: 800;
}

.mobile-day-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-left: 12px;
}

.mobile-day-details strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-day-details small {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 9px;
}

.mobile-day-details small svg {
  width: 11px;
  height: 11px;
}

.mobile-day-details em {
  align-self: flex-start;
  margin-top: 6px;
  border-radius: 999px;
  background: #eaf7f1;
  padding: 3px 7px;
  color: var(--success);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.mobile-schedule-day > svg {
  width: 16px;
  color: var(--text-subtle);
}

.mobile-back-button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.mobile-back-button svg {
  width: 16px;
}

.mobile-header-spacer {
  display: block;
}

.mobile-job-hero {
  border-radius: 14px;
  background: linear-gradient(145deg, #24262b, #111318);
  padding: 20px;
  color: #fff;
}

.mobile-job-hero h2 {
  margin-top: 10px;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.mobile-job-hero p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.mobile-job-hero svg {
  width: 13px;
}

.mobile-status {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(244, 106, 10, 0.2);
  padding: 4px 8px;
  color: #ffb37c;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-detail-card,
.mobile-form-section {
  margin-top: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
}

.mobile-detail-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
}

.mobile-detail-card > div + div {
  border-top: 1px solid var(--border);
}

.mobile-detail-card span {
  color: var(--text-muted);
  font-size: 9px;
}

.mobile-detail-card strong {
  max-width: 62%;
  font-size: 10px;
  text-align: right;
}

.mobile-job-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.mobile-large-button {
  min-height: 48px;
}

.mobile-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-form-grid {
  display: grid;
  gap: 10px;
}

.mobile-form-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.mobile-field > span,
.mobile-form-section h3 {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
}

.mobile-field input,
.mobile-field select,
.mobile-field textarea,
.mobile-form-section > textarea,
.mobile-entry-row input,
.mobile-entry-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
  background: var(--surface);
  padding: 9px 10px;
  color: var(--text);
  font: inherit;
  font-size: 10px;
}

.mobile-field input:focus,
.mobile-field select:focus,
.mobile-field textarea:focus,
.mobile-form-section > textarea:focus,
.mobile-entry-row input:focus,
.mobile-entry-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-highlight);
}

.mobile-field input[readonly] {
  background: var(--surface-muted);
  color: var(--text-muted);
}

.mobile-field textarea,
.mobile-form-section > textarea {
  resize: vertical;
}

.mobile-form-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.mobile-form-section h3 {
  color: var(--text);
  font-size: 11px;
}

.mobile-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 0.7fr 0.7fr;
  gap: 5px;
  margin-top: 6px;
}

.mobile-entry-row::before {
  grid-column: 2 / 3;
  content: "Ord.";
}

.mobile-entry-row::after {
  grid-column: 3 / 4;
  content: "OT";
}

.mobile-entry-row::before,
.mobile-entry-row::after {
  grid-row: 1;
  color: var(--text-subtle);
  font-size: 7px;
}

.mobile-entry-row select,
.mobile-entry-row input {
  grid-row: 2;
}

.mobile-add-row {
  align-self: flex-start;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.mobile-signature {
  width: 100%;
  height: 130px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  background:
    linear-gradient(transparent 88%, var(--border) 88%, var(--border) 89%, transparent 89%),
    var(--surface);
  cursor: crosshair;
  touch-action: none;
}

.mobile-signature-footer {
  display: flex;
  justify-content: space-between;
  color: var(--text-subtle);
  font-size: 8px;
}

.mobile-signature-footer button {
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
}

.mobile-form-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 8px;
  padding-bottom: 8px;
}

.mobile-toast {
  position: absolute;
  right: 18px;
  bottom: 24px;
  left: 18px;
  z-index: 10;
  border-radius: 9px;
  background: #18251f;
  padding: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: 180ms ease;
}

.mobile-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
