.start-screen {
  --launcher-text: #24322e;
  --launcher-muted: #68716e;
  --launcher-ease: cubic-bezier(.2, .8, .2, 1);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  color: var(--launcher-text);
  background: #f6f7f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.start-screen .start-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: max(16px, env(safe-area-inset-top)) max(32px, calc((100% - 960px) / 2)) 16px;
  border-bottom: 1px solid #e8ebed;
  background: #fff;
}

.launcher-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.launcher-monogram { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #187357; color: #fff; font-size: 13px; font-weight: 700; }
.start-screen .start-wordmark { display: block; color: var(--launcher-text); font-size: 15px; font-weight: 700; line-height: 1.35; }
.start-screen .start-store { display: block; margin-top: 2px; padding: 0; border: 0; color: var(--launcher-muted); font-size: 11px; font-weight: 500; }
.start-screen .start-account { display: flex; align-items: center; gap: 16px; min-width: 0; margin-left: auto; }
.start-screen #start-user-name { max-width: 240px; color: var(--launcher-muted); font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.start-screen .home-control { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f0f2f4; box-shadow: none; transition: background 160ms ease, transform 160ms var(--launcher-ease); }
.start-screen .home-control img { width: 20px; height: 20px; opacity: .78; }
.section-store { margin-left: auto; color: var(--launcher-muted); font-size: 12px; }

.start-screen .start-content {
  align-self: start;
  width: min(800px, calc(100% - 64px));
  margin: 76px auto 56px;
  padding: 0;
  text-align: left;
}

.start-screen h1 { width: fit-content; max-width: 100%; margin: 0; padding: 0; color: var(--launcher-text); font-size: 32px; line-height: 1.25; font-weight: 650; letter-spacing: 0; overflow-wrap: anywhere; }
.launcher-heading { margin-bottom: 40px; }
.launcher-date { display: block; margin-top: 10px; color: var(--launcher-muted); font-size: 14px; line-height: 1.5; text-transform: capitalize; }
.start-screen.section-screen .start-content { margin-top: 60px; }
.start-screen.section-screen h1 { margin-bottom: 40px; font-size: 28px; }

.start-screen .start-choices,
.start-screen .section-choices { display: grid; gap: 24px 20px; width: 100%; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.start-screen .start-choices.has-management { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.start-screen .section-choices[data-count="2"] { max-width: 420px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.start-screen .section-choices[data-count="1"] { max-width: 200px; grid-template-columns: minmax(0, 1fr); }

.start-screen .start-choice {
  --icon-surface: #237f67;
  position: relative;
  display: grid;
  grid-template-rows: 88px minmax(44px, auto);
  justify-items: center;
  align-content: start;
  gap: 16px;
  min-width: 0;
  min-height: 168px;
  padding: 10px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--launcher-text);
  font: inherit;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.start-screen .choice-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid #ffffff26;
  border-radius: 22px;
  background: var(--icon-surface);
  box-shadow: inset 0 1px 0 #ffffff26, 0 5px 10px #20352914;
  transition: transform 200ms var(--launcher-ease), box-shadow 200ms ease;
}

.start-screen .choice-icon img { display: block; width: 36px; height: 36px; opacity: 1; filter: brightness(0) invert(1); }
.start-screen .choice-schedule { --icon-surface: #228465; }
.start-screen .choice-inventory { --icon-surface: #357bd2; }
.start-screen .choice-recipes { --icon-surface: #d16b52; }
.start-screen .choice-management { --icon-surface: #5a6477; }
.start-screen .start-choice > span:last-child { width: 100%; max-width: 168px; color: var(--launcher-text); font-size: 15px; font-weight: 600; line-height: 1.45; text-align: center; text-wrap: balance; overflow-wrap: break-word; }
.start-screen .choice-badge { position: absolute; display: grid; place-items: center; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 5px; border: 2px solid #f6f7f9; border-radius: 12px; background: #c43b43; color: #fff; font-size: 11px; font-weight: 700; }
.start-screen .start-footer { width: min(960px, calc(100% - 64px)); margin: 0 auto; padding: 20px 0 max(24px, env(safe-area-inset-bottom)); color: #727a77; font-size: 11px; line-height: 1.5; text-align: left; }

.start-screen .start-choice:focus-visible,
.start-screen .home-control:focus-visible { outline: 2px solid #27755d; outline-offset: 4px; }
.start-screen .start-choice:active .choice-icon { transform: scale(.95); box-shadow: inset 0 1px 0 #ffffff26, 0 2px 4px #20352914; }
.start-screen .home-control:active { transform: scale(.94); }
.start-screen .start-choice:disabled { cursor: wait; }
.start-screen .start-content { animation: launcher-enter 240ms var(--launcher-ease); }

@keyframes launcher-enter { from { transform: translateY(6px); } to { transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .start-screen .start-choice:hover .choice-icon { transform: translateY(-3px); box-shadow: inset 0 1px 0 #ffffff26, 0 9px 16px #2035291c; }
  .start-screen .start-choice:active .choice-icon { transform: translateY(0) scale(.95); }
  .start-screen .home-control:hover { background: #e6eae8; }
}

@media (max-width: 600px) {
  .start-screen .start-brand { gap: 12px; min-height: 76px; padding: max(12px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left)); }
  .launcher-brand { gap: 10px; }
  .launcher-monogram { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }
  .start-screen .start-wordmark { font-size: 14px; }
  .start-screen .start-account { gap: 10px; }
  .start-screen #start-user-name { max-width: 110px; font-size: 12px; }
  .start-screen .start-content,
  .start-screen.section-screen .start-content { width: calc(100% - 48px); margin: 44px auto 36px; }
  .start-screen h1 { font-size: 28px; }
  .start-screen.section-screen h1 { font-size: 26px; margin-bottom: 30px; }
  .launcher-heading { margin-bottom: 30px; }
  .launcher-date { font-size: 13px; margin-top: 8px; }
  .start-screen .start-choices,
  .start-screen .start-choices.has-management,
  .start-screen .section-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .start-screen .section-choices[data-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 160px; }
  .start-screen .start-choice { grid-template-rows: 76px minmax(44px, auto); min-height: 150px; gap: 14px; padding: 8px 2px; }
  .start-screen .choice-icon { width: 76px; height: 76px; border-radius: 19px; }
  .start-screen .choice-icon img { width: 32px; height: 32px; }
  .start-screen .start-choice > span:last-child { font-size: 14px; line-height: 1.5; }
  .start-screen .start-footer { width: calc(100% - 48px); }
}

@media (max-width: 359px) {
  .start-screen .start-brand { padding-left: 18px; padding-right: 18px; gap: 8px; }
  .start-screen #start-user-name { max-width: 78px; }
  .start-screen .start-content,
  .start-screen.section-screen .start-content { width: calc(100% - 36px); margin-top: 32px; }
  .start-screen .start-choices,
  .start-screen .section-choices { column-gap: 8px; }
  .start-screen .start-footer { width: calc(100% - 36px); }
}

@media (prefers-reduced-motion: reduce) {
  .start-screen .start-content { animation: none; }
  .start-screen .choice-icon, .start-screen .home-control { transition: none; }
  .start-screen .start-choice:is(:hover, :active) .choice-icon, .start-screen .home-control:active { transform: none; }
}
