/* Simplify Laundry's look, from the app's own theme (laundry_theme.dart,
   desktop_theme.dart): Manrope, deep green ink, terracotta as the one accent,
   warm stone neutrals, the status pill colors. Scoped to the demo. */
.lf-demo .ss-stage {
  --ss-font: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ss-accent: #b84e2f;
  --ss-accent-2: #9a3f24;
  --ss-accent-soft: #f7ddcc;
  --ss-accent-text: #8f3a20;
  --ss-text-strong: #243b32;
  --ss-text: #4a5a52;
  --ss-text-faint: #716f65;
  --ss-icon: #4a5a52;
  --ss-icon-faint: #a19e94;
  --ss-canvas: #f6f2eb;
  --ss-surface: #ffffff;
  --ss-well: transparent;
  --ss-line: #e6e0d6;
  --ss-line-faint: #efe8dc;
  --ss-success: #3d6b35;
  --ss-success-soft: #dce8d2;
  --ss-success-text: #2f5529;
  --ss-warning: #b7791f;
  --ss-warning-soft: #ffe8b7;
  --ss-warning-text: #6f4e10;
  --ss-radius-md: 10px;
  --ss-radius-lg: 14px;
  --ss-shadow-hero: 0 1px 2px rgba(36, 59, 50, 0.08), 0 24px 48px -16px rgba(36, 59, 50, 0.28);
  --ss-shadow-satellite: 0 1px 3px rgba(36, 59, 50, 0.14), 0 30px 50px -20px rgba(36, 59, 50, 0.45);
  --gutter: 28px;
  /* The page is the ground: no plate behind the devices */
  overflow: hidden;
  background: transparent;
  font-family: var(--ss-font);
}

/* The desktop app, inset top-right; the phone overlaps its sidebar */
.lf-demo .lf-window {
  position: absolute;
  top: var(--gutter);
  right: var(--gutter);
  width: 488px;
  height: 600px;
  border-radius: 12px;
  box-shadow: var(--ss-shadow-hero);
}

/* The sidebar on the app's deeper stone: one light theme across the scene */
.lf-demo .lf-window .ss-window__side {
  background: #efe8dc;
}

.lf-demo .lf-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
}

.lf-demo .lf-side__brand {
  margin: 0 0 12px 6px;
  color: var(--ss-text-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lf-demo .lf-side__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
}

.lf-demo .lf-side__nav[data-on] {
  background: #fff;
}

.lf-demo .lf-window .ss-window__heading,
.lf-demo .lf-window .ss-window__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ss-text-strong);
}

.lf-demo .lf-main {
  padding: 4px 16px 16px;
}

.lf-demo .lf-revenue {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--ss-canvas);
}

.lf-demo .lf-muted {
  color: var(--ss-text-faint);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.lf-demo .lf-revenue__value {
  color: var(--ss-text-strong);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.lf-demo .lf-list {
  margin: 0 -4px;
}

.lf-demo .lf-row {
  --ss-row-title: 12.5px;
  --ss-row-subtitle: 11.5px;
  --ss-row-meta: 12px;
}

.lf-demo .lf-row .ss-row__title {
  font-weight: 700;
  color: var(--ss-text-strong);
}

.lf-demo .lf-row .ss-row__subtitle {
  color: var(--ss-text-faint);
}

.lf-demo .lf-price {
  color: var(--ss-text-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.lf-demo .lf-status {
  width: 64px;
  justify-content: center;
  margin-left: 4px;
}

.lf-demo .lf-row--filler {
  padding: 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
}

.lf-demo .lf-row__lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* The counter phone, overlapping the window's sidebar */
.lf-demo .lf-phone {
  position: absolute;
  top: 40px;
  left: var(--gutter);
  box-shadow: var(--ss-shadow-satellite);
}

/* The phone app: Material, in the app's own colors. Sizes are points. */
.lf-demo .lf-app {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 8px 20px 24px;
  background: #f6f2eb;
  font-family: var(--ss-font);
  letter-spacing: 0;
  color: #243b32;
}

.lf-demo .lf-app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.lf-demo .lf-app__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lf-demo .lf-sync {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: #ffe8b7;
  color: #6f4e10;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  /* A lasting layer, so its text doesn't snap to whole pixels as it resizes */
  will-change: transform;
  transition: background 0.2s ease, color 0.2s ease;
}

.lf-demo .lf-sync[data-net='syncing'] {
  background: #efe8dc;
  color: #4a5a52;
}

.lf-demo .lf-sync[data-net='synced'] {
  background: #dce8d2;
  color: #2f5529;
}

.lf-demo .lf-sync__icon {
  width: 18px;
  height: 18px;
}

/* An even box, so the 20px tick never lands on a half pixel */
.lf-demo .lf-save__done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 80px;
  height: 24px;
}

.lf-demo .lf-sync__icon svg {
  display: block;
}

.lf-demo .lf-spin {
  animation: lf-spin 1s linear infinite;
}

.lf-demo .lf-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
}

.lf-demo .lf-customer__text,
.lf-demo .lf-item__text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.lf-demo .lf-strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.lf-demo .lf-app .lf-muted {
  font-size: 17px;
}

.lf-demo .lf-item__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f7ddcc;
  color: #9a3f24;
}

.lf-demo .lf-item__price {
  flex: none;
  align-self: flex-start;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.lf-demo .lf-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding: 0 4px;
}

.lf-demo .lf-total__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lf-demo .lf-total__value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Material's filled button, pill shaped, at a phone's touch size */
.lf-demo .lf-save {
  --ss-control-h: 52px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
}

/* Narrow: the counter phone alone, the column's width, pinned a gutter from
   the top and running off the bottom */
.lf-demo .ss-stage[data-layout='compact'] {
  --gutter: 16px;
}

.lf-demo .ss-stage[data-layout='compact'] .lf-phone {
  top: var(--gutter);
  left: var(--gutter);
}

@keyframes lf-spin {
  to {
    transform: rotate(360deg);
  }
}
