/* MedsScreen static mock — layout from MedsScreen.kt + MedItem.kt (DEFAULT theme). */
.smr-home {
  --primary: #4caf50;
  --primary-10: rgba(76, 175, 80, 0.1);
  --secondary: #388e3c;
  --on-surface: #000000;
  --muted: rgba(0, 0, 0, 0.6);
  --outline: rgba(121, 116, 126, 0.38);
  --surface: #ffffff;
  --surface-variant: #e7e0ec;
  --error-container: #f9dedc;
  --on-error-container: #8c1d18;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  position: relative;
}

/* TopAppBar */
.smr-home__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  min-height: 44px;
  padding: 4px 2px 4px 12px;
  flex-shrink: 0;
  background: var(--surface);
}

.smr-home__title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.smr-home__tools {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.smr-home__tool {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.smr-home__tool svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Body: Column + padding(16.dp) */
.smr-home__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0 12px 76px;
}

.smr-home__section-label {
  margin: 2px 0;
  padding: 2px 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--on-surface);
}

/* LazyRow: ONE horizontal row — clip overflow (static mock, no scroll) */
.smr-home__chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  margin: 0 0 1px;
  overflow: hidden;
  width: 100%;
}

.smr-home__chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--outline);
  background: transparent;
  color: var(--on-surface);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.smr-home__chip.is-selected {
  background: var(--primary-10);
  border-color: var(--primary);
  color: var(--primary);
}

.smr-home__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* MedItem Card — primaryContainer bg when active */
.smr-home__card {
  background: var(--primary-10);
  border-radius: 12px;
  padding: 12px;
}

.smr-home__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 28px;
}

.smr-home__remaining {
  font-size: 11px;
  color: var(--muted);
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.smr-home__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--muted);
}

.smr-home__action {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.smr-home__action svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.smr-home__name {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.smr-home__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.smr-home__category {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smr-home__status {
  flex-shrink: 0;
  text-align: center;
  background: var(--primary-10);
  border-radius: 8px;
  padding: 6px 10px;
}

.smr-home__status-main {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  line-height: 1.15;
}

.smr-home__status-hint {
  display: block;
  font-size: 8px;
  color: var(--primary);
  line-height: 1.15;
  margin-top: 1px;
}

/* Schedule day shorts — Arrangement.End */
.smr-home__days {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.smr-home__day {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 500;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--primary-10);
  color: var(--primary);
  white-space: nowrap;
}

.smr-home__doses-label {
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* Nested DoseItem Card */
.smr-home__dose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px;
  margin-bottom: 3px;
  border-radius: 8px;
  background: var(--surface);
}

.smr-home__dose.is-taken {
  background: var(--surface-variant);
}

.smr-home__dose-main {
  min-width: 0;
  flex: 1;
}

.smr-home__dose-when {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
}

.smr-home__dose-type {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

.smr-home__dose-amt {
  font-size: 10px;
  color: var(--secondary);
  margin-top: 1px;
}

.smr-home__taken {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 1px;
}

.smr-home__dose-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-10);
  color: var(--primary);
}

.smr-home__dose-btn.is-close {
  background: var(--error-container);
  color: var(--on-error-container);
}

.smr-home__dose-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* FAB Add 72.dp */
.smr-home__fab {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 0;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(56, 142, 60, 0.4);
}

.smr-home__fab svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
