:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #273e32;
  --muted: #667267;
  --green: #224c3b;
  --line: #e1e5da;
  --sage: #e9edde;
  --white: #fffefa;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #a66b32; outline-offset: 5px; border-radius: 5px; }
svg { display: block; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
.skip-link { position: fixed; left: 16px; top: 16px; z-index: 100; background: var(--green); color: white; padding: 12px 18px; border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; padding: 30px 22px 22px; display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 650; letter-spacing: -1.2px; white-space: nowrap; }
.brand-dot { color: #b27142; }
.sidebar-label { margin: 40px 12px 15px; color: var(--muted); font-size: 10px; letter-spacing: 1.7px; font-weight: 650; }
.desktop-navigation { display: grid; gap: 5px; }
.nav-link { display: flex; gap: 13px; align-items: center; min-height: 46px; padding: 11px 14px; border-radius: 9px; color: #58675c; font-size: 14px; font-weight: 500; }
.nav-link svg { width: 21px; height: 21px; }
.nav-link:hover { background: #f0f2e9; color: var(--green); }
.nav-link.is-active { color: var(--green); background: #e8eedf; font-weight: 650; }
.sidebar-note { margin: auto 2px 0; padding: 22px 15px 17px; background: #f0f2e9; border-radius: 13px; }
.note-sprout svg { width: 25px; height: 25px; color: var(--green); margin-bottom: 12px; }
.sidebar-note p { font-size: 14px; font-weight: 600; line-height: 1.5; }
.sidebar-note > span:last-child { display: block; font-size: 10px; color: var(--muted); margin-top: 9px; }
.sidebar-footer { font-size: 9px; letter-spacing: 1.4px; color: var(--muted); padding: 24px 10px 0; }
.workspace { margin-left: 232px; min-width: 0; }
.topbar { height: 87px; padding: 0 44px; display: flex; align-items: center; gap: 25px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 14px; font-weight: 550; }
.topbar-note { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #6b8962; }
.settings-link { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.settings-link svg { width: 19px; height: 19px; }
.settings-link:hover { background: var(--sage); }
.mobile-brand { display: none; }
.main-content { max-width: 1180px; margin: 0 auto; padding: 37px 44px 22px; }
.welcome { background: #e9edde; border: 1px solid #dfe5d2; border-radius: 20px; padding: 36px 42px 34px; position: relative; overflow: hidden; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 650; letter-spacing: 1.5px; color: #52654c; }
.eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: #71825d; }
.welcome h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 4.6vw, 66px); line-height: 1.07; font-weight: 400; letter-spacing: -2.6px; margin-top: 20px; position: relative; z-index: 1; }
.welcome h1 em { color: #4c6a48; font-weight: 400; }
.welcome > p { color: #56664f; font-size: 13px; line-height: 1.8; margin: 18px 0 23px; max-width: 55%; position: relative; z-index: 1; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border-radius: 8px; padding: 13px 19px; font-size: 12px; font-weight: 600; position: relative; z-index: 1; }
.button svg { width: 17px; height: 17px; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: #183e2e; }
.button-secondary { border: 1px solid #cdd7c6; color: var(--green); background: var(--white); }
.button-secondary:hover { background: var(--sage); }
.welcome-art { position: absolute; right: 25px; bottom: 34px; width: 41%; }
.welcome-art > svg { width: 100%; }
.art-caption { display: block; text-align: center; color: #5c6e50; font-size: 8px; font-weight: 600; letter-spacing: 2px; margin-top: 11px; }
.quick-start { margin-top: 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 17px; }
.section-heading h2 { font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.section-heading > span { font-size: 11px; color: var(--muted); }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.quick-card { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: 22px; }
.quick-card:hover { border-color: #9aaf8d; }
.card-icon { display: inline-flex; padding: 10px; border-radius: 10px; margin-bottom: 22px; color: #466243; background: #edf0e2; }
.card-icon svg { width: 20px; height: 20px; }
.card-icon.foods { background: #f5e9da; color: #94653e; }
.card-icon.assistant { background: #e9e9ef; color: #696482; }
.quick-card h3 { font-size: 13px; font-weight: 600; letter-spacing: -.2px; line-height: 1.6; }
.quick-card p { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 6px; }
.card-action { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 11px; font-weight: 600; margin-top: 22px; }
.card-action svg { width: 14px; height: 14px; }
.day-panel { border: 1px solid var(--line); border-radius: 14px; background: #f0f2e9; padding: 25px 28px; margin-top: 22px; }
.day-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.day-panel .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
.day-panel h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 26px; letter-spacing: -.5px; margin-top: 9px; }
.day-mark svg { width: 31px; height: 31px; color: #8b7955; }
.day-panel > p { font-size: 12px; line-height: 1.8; color: #5e6e57; margin-top: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: var(--green); font-weight: 600; padding: 12px 0 0; min-height: 36px; }
.text-link svg { width: 14px; height: 14px; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 10px 44px 24px; color: var(--muted); font-size: 10px; max-width: 1180px; margin: auto; }
.page-footer > span:last-child { font-weight: 600; }
.mobile-navigation { display: none; }
.section-intro { margin: 5px 0 28px; }
.section-intro h1 { font-family: Georgia, "Times New Roman", serif; font-size: 49px; font-weight: 400; letter-spacing: -1.5px; margin: 13px 0 10px; }
.heading-dot { color: #b47c4f; }
.section-intro > p { font-size: 14px; color: var(--muted); }
.empty-state { min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 50px 24px; }
.empty-icon { border-radius: 50%; padding: 23px; margin-bottom: 27px; background: var(--sage); color: #5a7752; }
.empty-icon svg { width: 34px; height: 34px; }
.empty-state .eyebrow { font-size: 9px; }
.empty-state h2 { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; letter-spacing: -.7px; margin-top: 14px; }
.empty-state p { font-size: 13px; color: var(--muted); line-height: 1.8; margin: 15px 0 25px; }
@media (max-width: 1100px) and (min-width: 761px) {
  .sidebar { width: 208px; padding-inline: 18px; }
  .workspace { margin-left: 208px; }
  .main-content { padding: 28px; }
  .topbar, .page-footer { padding-inline: 28px; }
  .welcome { padding: 32px; }
  .welcome h1 { font-size: 47px; }
  .welcome-art { right: 10px; bottom: 60px; width: 37%; }
  .quick-card { padding: 16px; }
  .quick-card h3 { font-size: 12px; }
  .section-heading > span { display: none; }
}
@media (max-width: 760px) {
  .sidebar, .breadcrumb { display: none; }
  .workspace { margin-left: 0; }
  .topbar { height: 73px; padding: 0 22px; gap: 15px; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 650; letter-spacing: -.9px; min-height: 44px; }
  .settings-link { margin-left: auto; }
  .topbar-note { display: none; }
  .main-content { padding: 22px 20px; }
  .welcome { padding: 28px; }
  .welcome h1 { font-size: clamp(42px, 10vw, 60px); letter-spacing: -1.7px; margin-top: 18px; }
  .welcome > p { max-width: 100%; font-size: 13px; margin-bottom: 20px; }
  .welcome-art { position: relative; width: 80%; max-width: 290px; right: auto; bottom: auto; margin: 14px auto 0; }
  .art-caption { margin-top: 0; }
  .quick-start { margin-top: 27px; }
  .section-heading { margin-bottom: 15px; }
  .section-heading > span { display: none; }
  .quick-grid { grid-template-columns: 1fr; gap: 12px; }
  .quick-card { position: relative; padding: 20px 20px 20px 81px; min-height: 121px; }
  .card-icon { position: absolute; left: 19px; top: 24px; padding: 10px; margin: 0; }
  .quick-card h3 { font-size: 14px; }
  .quick-card p { font-size: 12px; }
  .card-action { margin-top: 13px; }
  .day-panel { padding: 23px; }
  .day-panel h2 { font-size: 25px; }
  .day-panel > p { max-width: 93%; }
  .page-footer { padding: 8px 23px calc(100px + env(safe-area-inset-bottom)); font-size: 9px; }
  .mobile-navigation { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--white); border-top: 1px solid #d4dccd; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-navigation > .nav-link, .more-navigation > summary { flex-direction: column; justify-content: center; gap: 5px; padding: 7px 3px; min-height: 53px; font-size: 10px; }
  .mobile-navigation .nav-link svg { width: 21px; height: 21px; }
  .more-navigation > summary { cursor: pointer; list-style: none; display: flex; }
  .more-navigation > summary::-webkit-details-marker { display: none; }
  .more-panel { position: absolute; bottom: calc(100% + 10px); right: 15px; width: 210px; padding: 8px; border-radius: 12px; background: var(--white); border: 1px solid #cdd7c4; box-shadow: 0 8px 28px #273e3220; }
  .more-panel .nav-link { min-height: 48px; }
  .section-intro h1 { font-size: 43px; }
  .section-intro { margin-bottom: 24px; }
  .empty-state { min-height: 390px; }
  .empty-state h2 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.auth-panel { background: var(--white); border: 1px solid var(--line); border-radius: 18px; max-width: 640px; padding: clamp(22px, 4vw, 40px); margin: 0 auto 24px; }
.auth-panel h1 { font-family: Georgia, serif; font-size: 39px; font-weight: 400; letter-spacing: -1px; margin: 14px 0; }
.auth-panel h2 { font-size: 22px; }
.auth-panel > p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 15px 0; }
.auth-form { display: grid; gap: 12px; margin: 24px 0; }
.auth-form label { font-size: 14px; font-weight: 600; }
.auth-form input:not([type="submit"]) { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #8b9a88; border-radius: 7px; padding: 12px; background: white; font: inherit; }
.auth-form input[type="submit"], .auth-panel button { cursor: pointer; font-family: inherit; border: 0; }
.auth-message { padding: 14px; background: var(--sage); border-radius: 8px; line-height: 1.7; }
.password-sign-in summary { cursor: pointer; padding: 12px 0; font-size: 14px; }
.session-list { list-style: none; padding: 0; margin: 24px 0; }
.session-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.auth-form fieldset { min-width: 0; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.auth-form legend { font-size: 14px; font-weight: 600; padding: 0 6px; }

.settings-sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.settings-sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; background: var(--white); }
.settings-sections a:hover { background: var(--sage); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.settings-panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 4vw, 34px); scroll-margin-block: 18px 100px; }
.settings-panel h2 { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.settings-panel > p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.settings-panel > form.button_to { display: inline-block; margin: 8px 8px 0 0; }
.settings-panel .button { cursor: pointer; border: 0; font-family: inherit; }
.settings-panel button:disabled { cursor: default; color: var(--muted); background: var(--sage); }
.settings-placeholder .eyebrow { margin-bottom: 16px; }
@media (min-width: 1200px) { .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* Rails-only account and operator screens use the original app's card/form tokens.
   Cognito hosted sign-in and external operator controls have no in-app screen. */
.mm-main .auth-panel.mm-account { max-width: 560px; padding: 1.25rem; margin: 0 auto 1.25rem; border-radius: var(--radius); background: var(--panel); color: var(--ink); font-family: Arial, sans-serif; overflow-wrap: anywhere; }
.mm-main .mm-account h1 { font: 700 1.15rem Arial, sans-serif; letter-spacing: normal; margin: 0 0 .75rem; }
.mm-main .mm-account h2 { font-size: 1rem; margin: 1.25rem 0 .75rem; }
.mm-main .mm-account > p { color: var(--ink); font-size: 1rem; line-height: 1.45; margin: .75rem 0; }
.mm-main .mm-account .auth-form { margin: 1rem 0; gap: .65rem; }
.mm-main .mm-account .auth-form label { font: .8rem Arial, sans-serif; color: var(--muted); }
.mm-main .mm-account .auth-form input:not([type=submit]) { min-height: 36px; max-width: 100%; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: .95rem Arial, sans-serif; }
.mm-main .mm-account .button { min-height: 36px; max-width: 100%; padding: .55rem 1.1rem; border-radius: 10px; font: 600 .95rem Arial, sans-serif; white-space: normal; text-align: center; }
.mm-main .mm-account .auth-form input[type=submit] { justify-self: start; }
.mm-main .mm-account form.button_to { margin: .75rem 0; }
.mm-main .mm-account .password-sign-in > summary { padding: .75rem 0; font-size: .9rem; }
.mm-main .mm-account .text-link { font-size: .9rem; overflow-wrap: anywhere; }
.mm-main .mm-account li { margin: .5rem 0; }
.mm-main .mm-account ul, .mm-main .mm-account ol { padding-left: 1.25rem; }
.mm-main .mm-account :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
