:root {
  color-scheme: light;
  --bg: #f7f2e8;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #21342c;
  --muted: #6f7d74;
  --faint: #9aa49d;
  --line: #e4dfd4;
  --line-strong: #d7d0c3;
  --green: #315f4a;
  --green-dark: #244b3a;
  --green-soft: #dfeae3;
  --sage: #94ad9e;
  --peach: #e8b585;
  --peach-soft: #f6e5d4;
  --coral: #d8785f;
  --coral-soft: #f7ded6;
  --blue-soft: #dfe9ed;
  --shadow: 0 18px 50px rgba(56, 67, 59, 0.08);
  --shadow-small: 0 7px 24px rgba(56, 67, 59, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --sidebar: 248px;
  font-family: Inter, ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 8%, rgba(232, 181, 133, 0.16), transparent 24rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(49, 95, 74, 0.2);
  outline-offset: 2px;
}

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.login-view {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(145deg, #f8f4eb 0%, #edf2e9 100%);
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  padding: 48px;
  text-align: center;
  background: rgba(255, 253, 248, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(58, 72, 61, 0.13);
  backdrop-filter: blur(16px);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: var(--green);
}

.brand-mark span:first-child {
  width: 26px;
  height: 26px;
  border: 2px solid #f8f1e6;
  border-radius: 50%;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
  position: absolute;
  width: 2px;
  height: 16px;
  top: 5px;
  border-radius: 4px;
  background: var(--peach);
}

.brand-mark span:nth-child(2) { left: 10px; }
.brand-mark span:nth-child(3) { right: 10px; }
.brand-mark-large { width: 62px; height: 62px; margin: 0 auto 26px; border-radius: 19px; }
.brand-mark-large span:first-child { width: 38px; height: 38px; }
.brand-mark-large span:nth-child(2), .brand-mark-large span:nth-child(3) { top: 8px; height: 23px; }
.brand-mark-large span:nth-child(2) { left: 14px; }
.brand-mark-large span:nth-child(3) { right: 14px; }

.eyebrow {
  margin: 0 0 9px;
  color: var(--coral);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.login-card h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 500; letter-spacing: -0.04em; }
.login-lead { margin: 14px 0 32px; color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.login-form { text-align: left; }
.login-form label, .field-label { display: block; margin: 0 0 8px; color: var(--ink); font-size: 0.8rem; font-weight: 750; }
.password-row { display: flex; gap: 8px; }
.password-row input { min-width: 0; flex: 1; }
.form-error { min-height: 21px; margin: 8px 2px 0; color: #a64939; font-size: 0.82rem; }
.dev-hint { margin: 10px 2px 0; padding: 10px 12px; color: var(--green); font-size: 0.8rem; background: var(--green-soft); border-radius: 10px; }
.login-footnote { margin: 19px 0 0; color: var(--faint); font-size: 0.78rem; }
.login-orbit { position: absolute; border-radius: 50%; opacity: 0.6; filter: blur(1px); }
.orbit-one { width: 420px; height: 420px; top: -180px; right: -110px; background: var(--peach-soft); }
.orbit-two { width: 330px; height: 330px; bottom: -130px; left: -90px; background: var(--green-soft); }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 10;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 28px 18px 22px;
  background: rgba(255, 253, 248, 0.9);
  border-right: 1px solid rgba(215, 208, 195, 0.7);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; font-weight: 600; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 0.66rem; letter-spacing: 0.04em; }
.side-nav { display: grid; gap: 5px; margin-top: 48px; }
.side-nav a, .sidebar-bottom > a {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
  border-radius: 14px;
  transition: 160ms ease;
}
.side-nav a:hover, .sidebar-bottom > a:hover { color: var(--green); background: rgba(223, 234, 227, 0.56); }
.side-nav a.active, .sidebar-bottom > a.active { color: var(--green-dark); background: var(--green-soft); }
.side-nav a.active::before, .sidebar-bottom > a.active::before { position: absolute; left: -18px; width: 4px; height: 24px; border-radius: 0 4px 4px 0; background: var(--green); content: ""; }
.nav-icon { display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; }
.nav-icon svg { width: 20px; height: 20px; }
.nav-badge { min-width: 22px; margin-left: auto; padding: 3px 6px; color: white; font-size: 0.68rem; text-align: center; background: var(--coral); border-radius: 99px; }
.sidebar-bottom { display: grid; gap: 18px; margin-top: auto; }
.family-chip { display: flex; align-items: center; gap: 10px; padding: 14px 11px 0; border-top: 1px solid var(--line); }
.family-avatar, .avatar-button { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--green-dark); font-size: 0.72rem; font-weight: 800; background: var(--peach-soft); border-radius: 50%; }
.family-chip strong { display: block; max-width: 135px; overflow: hidden; font-size: 0.79rem; text-overflow: ellipsis; white-space: nowrap; }
.family-chip small { display: block; margin-top: 2px; color: var(--faint); font-size: 0.68rem; }
.mobile-header, .bottom-nav { display: none; }

.page {
  width: calc(100% - var(--sidebar));
  max-width: 1480px;
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 45px clamp(28px, 4vw, 68px) 70px;
}

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-header h1, .hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.05rem, 4vw, 3.25rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; }
.page-header p { margin: 9px 0 0; color: var(--muted); line-height: 1.5; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  font-size: 0.84rem;
  font-weight: 750;
  white-space: nowrap;
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-small); }
.button:disabled { cursor: wait; opacity: 0.55; transform: none; box-shadow: none; }
.button-primary { color: #fff; background: var(--green); border-color: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-soft { color: var(--green-dark); background: var(--green-soft); border-color: transparent; }
.button-coral { color: #8d402e; background: var(--coral-soft); border-color: transparent; }
.button-ghost { background: transparent; border-color: transparent; }
.button-small { min-height: 34px; padding: 0 11px; font-size: 0.75rem; border-radius: 10px; }
.button-danger { color: #a24938; }
.icon-button { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.icon-button:hover { color: var(--ink); background: var(--bg); }
.icon-button svg, .button svg { width: 18px; height: 18px; }

input, textarea, select {
  width: 100%;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: 0;
  transition: border 140ms ease, box-shadow 140ms ease;
}
input, select { min-height: 46px; padding: 0 13px; }
textarea { min-height: 120px; padding: 12px 13px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a5ada7; }
input:focus, textarea:focus, select:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(148, 173, 158, 0.16); }
.field { min-width: 0; }
.field-help { margin: 6px 0 0; color: var(--faint); font-size: 0.74rem; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid .field-full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-pill input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-pill span { display: inline-flex; min-height: 38px; align-items: center; padding: 0 13px; color: var(--muted); font-size: 0.78rem; font-weight: 700; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; }
.checkbox-pill input:checked + span { color: var(--green-dark); background: var(--green-soft); border-color: var(--sage); }
.member-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.member-picker label { position: relative; min-width: 0; }
.member-picker input { position: absolute; opacity: 0; pointer-events: none; }
.member-picker input + span { display: flex; min-height: 52px; align-items: center; gap: 9px; padding: 8px 11px; color: var(--muted); font-size: .76rem; font-weight: 750; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.member-picker b, .detail-calories b { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; color: var(--green-dark); font-size: .65rem; background: var(--green-soft); border-radius: 50%; }
.member-picker input:checked + span { color: var(--green-dark); background: var(--green-soft); border-color: var(--sage); box-shadow: inset 0 0 0 1px var(--sage); }
.member-picker input:focus-visible + span { outline: 3px solid rgba(49, 95, 74, .2); outline-offset: 2px; }
.member-picker label.unavailable input + span { flex-wrap: wrap; color: var(--faint); background: var(--bg); cursor: not-allowed; opacity: .72; }
.member-picker label.unavailable small { margin-left: 35px; margin-top: -12px; font-size: .58rem; font-weight: 650; }

.hero {
  position: relative;
  display: grid;
  min-height: 235px;
  grid-template-columns: 1.35fr 0.65fr;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  background: var(--green);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.hero::after { position: absolute; width: 340px; height: 340px; right: -110px; top: -125px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.hero-copy { position: relative; z-index: 1; align-self: center; color: white; }
.hero-copy .eyebrow { color: var(--peach); }
.hero-copy p { max-width: 590px; margin: 15px 0 0; color: rgba(255,255,255,.74); line-height: 1.65; }
.hero-note { position: relative; z-index: 1; align-self: end; justify-self: end; max-width: 220px; padding: 18px; color: var(--green-dark); background: var(--peach-soft); border-radius: 18px; transform: rotate(2deg); }
.hero-note strong { display: block; font-family: Georgia, serif; font-size: 1.1rem; }
.hero-note span { display: block; margin-top: 5px; font-size: 0.75rem; line-height: 1.4; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .75fr); gap: 22px; margin-top: 23px; }
.feedback-reminder { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 18px 20px; }
.feedback-reminder > div { display: flex; align-items: center; gap: 12px; }
.feedback-reminder > div:first-child > span { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: var(--green-dark); background: var(--green-soft); border-radius: 12px; }
.feedback-reminder > div:first-child > span svg { width: 20px; height: 20px; }
.feedback-reminder h2, .feedback-reminder p { margin: 0; }
.feedback-reminder h2 { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 500; }
.feedback-reminder p:not(.eyebrow) { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.feedback-reminder > div:last-child { justify-content: flex-end; flex-wrap: wrap; }
.card { background: rgba(255, 253, 248, 0.9); border: 1px solid rgba(215, 208, 195, 0.7); border-radius: var(--radius-lg); box-shadow: 0 7px 28px rgba(67, 75, 69, 0.045); }
.card-pad { padding: 23px; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-header h2, .section-title { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.card-header a { color: var(--green); font-size: 0.76rem; font-weight: 750; }
.today-meals { display: grid; gap: 10px; }
.today-meal { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 70px; padding: 10px 13px; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 15px; }
.meal-symbol { display: grid; width: 42px; height: 42px; place-items: center; font-size: 1.1rem; background: var(--peach-soft); border-radius: 13px; }
.meal-symbol.smoothie { color: #715078; background: #efe2f0; }
.meal-symbol.soup { color: #8b552e; background: #f5e7c9; }
.meal-symbol.lunch { background: var(--green-soft); }
.meal-symbol.dinner { background: var(--blue-soft); }
.today-meal small { display: block; margin-bottom: 3px; color: var(--faint); font-size: 0.66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.today-meal strong { display: block; overflow: hidden; font-size: 0.88rem; text-overflow: ellipsis; white-space: nowrap; }
.today-meal-recipes { display: grid; gap: 2px; }
.today-meal-recipes strong + strong { color: var(--muted); font-size: .78rem; }
.batch-chip, .tag { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; color: var(--muted); font-size: 0.66rem; font-weight: 700; background: var(--bg); border-radius: 99px; }
.batch-chip.cooking { color: #87452f; background: var(--coral-soft); }
.batch-chip.continuation { color: var(--green-dark); background: var(--green-soft); }
.batch-chip.options { color: #66456f; background: #efe2f0; }
.empty-inline { color: var(--faint); font-size: .82rem; font-style: italic; }
.quick-list { display: grid; gap: 10px; }
.quick-action { display: flex; align-items: center; gap: 12px; padding: 13px; text-align: left; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.quick-action:hover { border-color: var(--sage); }
.quick-action-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 12px; }
.quick-action strong { display: block; font-size: .81rem; }
.quick-action small { display: block; margin-top: 3px; color: var(--faint); font-size: .69rem; }
.dashboard-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.prep-list, .shopping-preview { display: grid; gap: 11px; }
.prep-item { display: flex; align-items: center; gap: 11px; }
.prep-item > div { min-width: 0; flex: 1; }
.prep-item.is-done { opacity: .72; }
.prep-number { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: var(--green-dark); font-size: .7rem; font-weight: 850; background: var(--green-soft); border-radius: 50%; }
.prep-item strong { font-size: .8rem; }
.prep-item small { display: block; margin-top: 2px; color: var(--faint); font-size: .68rem; }
.preview-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 9px; font-size: .8rem; border-bottom: 1px solid var(--line); }
.preview-item:last-child { padding-bottom: 0; border-bottom: 0; }
.preview-item span:last-child { color: var(--faint); font-size: .72rem; }
.empty-state { padding: 42px 20px; text-align: center; }
.empty-state-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 15px; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 19px; }
.empty-state-icon svg { width: 26px; height: 26px; }
.empty-state h3 { margin: 0; font-size: .98rem; }
.empty-state p { max-width: 390px; margin: 8px auto 18px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.seasonal-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 32px; margin-top: 22px; padding: clamp(24px, 4vw, 38px); overflow: hidden; background: linear-gradient(125deg, #fffaf0 0%, #edf2e9 100%); }
.seasonal-copy h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 500; }
.seasonal-copy > p:not(.eyebrow) { max-width: 650px; margin: 9px 0 18px; color: var(--muted); font-size: .81rem; line-height: 1.55; }
.seasonal-produce { display: flex; flex-wrap: wrap; gap: 7px; }
.seasonal-produce span { display: inline-flex; min-height: 30px; align-items: center; padding: 0 11px; color: var(--green-dark); font-size: .69rem; font-weight: 750; background: rgba(255,255,255,.72); border: 1px solid rgba(148,173,158,.38); border-radius: 99px; }
.seasonal-dishes { display: grid; align-content: center; gap: 8px; padding: 18px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.8); border-radius: 17px; box-shadow: var(--shadow-small); }
.seasonal-dishes small { margin-bottom: 3px; color: var(--faint); font-size: .61rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.seasonal-dishes strong { padding: 8px 0; font-size: .77rem; border-bottom: 1px solid var(--line); }
.seasonal-dishes strong:last-child { border-bottom: 0; }

.week-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.week-switcher { display: flex; align-items: center; gap: 7px; }
.week-label { min-width: 190px; text-align: center; font-size: .85rem; font-weight: 800; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(145px, 1fr)); gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: thin; }
.day-column { min-width: 145px; padding: 13px; background: rgba(255,253,248,.82); border: 1px solid var(--line); border-radius: 18px; }
.day-column.today { background: #fffdf8; border-color: var(--peach); box-shadow: 0 10px 30px rgba(90,70,50,.08); }
.day-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 13px; }
.day-heading strong { font-size: .75rem; text-transform: capitalize; }
.day-heading span { display: grid; width: 28px; height: 28px; place-items: center; color: var(--muted); font-size: .72rem; font-weight: 800; background: var(--bg); border-radius: 9px; }
.today .day-heading span { color: #87452f; background: var(--peach-soft); }
.day-slots { display: grid; gap: 8px; }
.meal-slot { position: relative; min-height: 166px; padding: 11px 11px 36px; overflow: hidden; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 13px; cursor: pointer; transition: border 140ms ease, box-shadow 140ms ease; }
.meal-slot:hover { border-color: var(--sage); box-shadow: var(--shadow-small); }
.meal-slot.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--faint); background: transparent; border-style: dashed; cursor: pointer; }
.meal-slot.empty:hover { color: var(--green); background: var(--green-soft); border-color: var(--sage); }
.meal-slot.empty b { display: grid; width: 26px; height: 26px; margin-bottom: 5px; place-items: center; font-size: 1rem; font-weight: 400; background: var(--surface-strong); border-radius: 50%; }
.meal-slot.empty span { font-size: .67rem; font-weight: 700; }
.meal-slot-group { display: grid; gap: 7px; padding: 7px; background: rgba(232, 238, 233, .48); border: 1px solid rgba(148, 173, 158, .38); border-radius: 15px; }
.meal-slot-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 1px 2px; }
.meal-slot-heading span { color: var(--green-dark); font-size: .58rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.meal-slot-heading small { color: var(--faint); font-size: .52rem; font-weight: 750; }
.meal-slot.multi-option { min-height: 135px; padding: 10px 9px 34px; }
.meal-slot.multi-option strong { -webkit-line-clamp: 2; }
.add-meal-option { min-height: 33px; padding: 4px 7px; color: var(--green); font-size: .61rem; font-weight: 800; background: rgba(255,255,255,.68); border: 1px dashed var(--sage); border-radius: 10px; cursor: pointer; }
.add-meal-option:hover { color: var(--green-dark); background: var(--surface-strong); border-style: solid; }
.meal-slot strong { display: -webkit-box; overflow: hidden; font-size: .73rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.slot-batch { display: inline-flex; margin-top: 9px; padding: 4px 7px; font-size: .58rem; font-weight: 850; border-radius: 99px; }
.slot-batch.cooking { color: #8d402e; background: var(--coral-soft); }
.slot-batch.continuation { color: var(--green-dark); background: var(--green-soft); }
.slot-statuses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.slot-time, .slot-ingredients { display: flex; min-width: 0; min-height: 43px; align-items: center; gap: 6px; padding: 6px; border-radius: 11px; }
.slot-time > i, .slot-ingredients > i { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; font-size: .86rem; font-style: normal; background: rgba(255,255,255,.68); border-radius: 9px; }
.slot-time > span, .slot-ingredients > span { min-width: 0; }
.slot-time b, .slot-time small, .slot-ingredients b, .slot-ingredients small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-time b, .slot-ingredients b { font-size: .58rem; font-weight: 850; line-height: 1.1; }
.slot-time small, .slot-ingredients small { margin-top: 2px; font-size: .47rem; font-weight: 750; line-height: 1.1; opacity: .78; }
.slot-time { color: var(--muted); background: var(--bg); }
.slot-ingredients.ready { color: var(--green-dark); background: var(--green-soft); }
.slot-ingredients.missing { color: #914735; background: var(--coral-soft); }
.slot-calories { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.slot-calories span { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); font-size: .56rem; }
.slot-calories b { display: grid; width: 15px; height: 15px; place-items: center; color: var(--green-dark); font-size: .48rem; background: var(--green-soft); border-radius: 50%; }
.slot-feedback { position: absolute; right: 9px; bottom: 8px; padding: 4px 0; color: var(--coral); font-size: .59rem; font-weight: 850; background: transparent; border: 0; cursor: pointer; }
.slot-feedback:hover { color: #9b4935; }
.slot-feedback.rated { color: var(--green); }
.slot-remove { position: absolute; top: 6px; right: 5px; display: grid; width: 25px; height: 25px; padding: 0; place-items: center; color: var(--faint); font-size: .9rem; background: rgba(255,255,255,.8); border: 0; border-radius: 50%; cursor: pointer; opacity: 0; }
.meal-slot:hover .slot-remove, .slot-remove:focus { opacity: 1; }
.plan-legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--faint); font-size: .7rem; }
.plan-legend i { display: inline-block; width: 16px; height: 7px; background: var(--green-soft); border-radius: 99px; }
.daily-energy { margin-top: 9px; padding: 9px 8px; background: var(--bg); border-radius: 10px; }
.daily-energy > small { display: block; margin-bottom: 6px; color: var(--faint); font-size: .54rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.energy-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 0; color: var(--muted); font-size: .58rem; }
.energy-row b { display: grid; width: 16px; height: 16px; place-items: center; color: var(--green-dark); font-size: .48rem; background: var(--green-soft); border-radius: 50%; }

.shopping-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 22px; }
.shopping-card { overflow: hidden; }
.shopping-summary { display: flex; align-items: center; gap: 16px; padding: 19px 22px; background: var(--green-soft); border-bottom: 1px solid rgba(148,173,158,.45); }
.shopping-summary progress { width: 100%; height: 8px; accent-color: var(--green); }
.shopping-summary strong { min-width: 80px; font-size: .78rem; text-align: right; }
.shopping-groups { padding: 7px 22px 22px; }
.shopping-time-section + .shopping-time-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.shopping-time-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 12px 0 2px; }
.shopping-time-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 1rem; }
.shopping-time-heading small { color: var(--faint); font-size: .65rem; }
.shopping-time-section.later { padding: 15px; background: rgba(231,238,245,.42); border-radius: 15px; }
.shopping-time-section.postponed { opacity: .8; }
.shopping-group h4 { margin: 18px 0 8px; color: var(--muted); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
.shopping-item { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto auto 32px; align-items: center; gap: 8px; min-height: 58px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.shopping-item:last-child { border-bottom: 0; }
.shopping-check { position: relative; display: grid; width: 22px; height: 22px; place-items: center; }
.shopping-check input { position: absolute; width: 22px; min-height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.shopping-check span { width: 20px; height: 20px; border: 1.5px solid var(--line-strong); border-radius: 7px; }
.shopping-check input:checked + span { background: var(--green); border-color: var(--green); }
.shopping-check input:checked + span::after { display: block; width: 8px; height: 4px; margin: 5px 0 0 4px; border-bottom: 2px solid white; border-left: 2px solid white; content: ""; transform: rotate(-45deg); }
.shopping-item.checked .shop-name { color: var(--faint); text-decoration: line-through; }
.shop-name { font-size: .82rem; font-weight: 700; }
.shop-name small { display: block; max-width: 520px; margin-top: 3px; color: var(--faint); font-size: .61rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.shop-name .quantity-warning { color: #9a4b3a; }
.shop-meta { color: var(--muted); font-size: .73rem; white-space: nowrap; }
.shop-meta small { display: block; margin-top: 3px; color: var(--faint); font-size: .59rem; text-transform: capitalize; }
.shop-tools { display: flex; gap: 4px; }
.mini-action { padding: 5px 7px; color: var(--muted); font-size: .58rem; font-weight: 800; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.mini-action:hover { color: var(--green-dark); border-color: var(--sage); }
.shopping-stale { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -8px 0 12px; padding: 13px 16px; color: #8a4937; background: var(--coral-soft); border: 1px solid var(--peach); border-radius: 15px; }
.shopping-stale strong, .shopping-stale small { display: block; }
.shopping-stale strong { font-size: .79rem; }
.shopping-stale small { margin-top: 2px; font-size: .66rem; }
.repeat-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: var(--coral); border-radius: 50%; vertical-align: middle; }
.add-shop-form { display: grid; grid-template-columns: minmax(0, 1fr) 80px 80px auto; gap: 7px; margin-top: 20px; }
.add-shop-form input, .add-shop-form select { min-height: 41px; font-size: .78rem; }
.side-stack { display: grid; gap: 14px; }
.tip-card { padding: 20px; }
.tip-icon { display: grid; width: 38px; height: 38px; margin-bottom: 13px; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 12px; }
.tip-card h3 { margin: 0; font-size: .86rem; }
.tip-card p { margin: 7px 0 14px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.tip-card .button { width: 100%; }
.inventory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.inventory-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.inventory-card strong, .inventory-card span, .inventory-card small { display: block; }
.inventory-card strong { font-size: .8rem; }
.inventory-card span { margin-top: 4px; color: var(--green-dark); font-weight: 800; }
.inventory-card small { margin-top: 3px; color: var(--faint); font-size: .63rem; }
.inventory-card.expiring { background: var(--coral-soft); border-color: var(--peach); }
.substitute-list { display: grid; gap: 9px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.search-field { position: relative; min-width: min(100%, 290px); margin-right: 7px; }
.search-field input { padding-left: 40px; }
.search-field svg { position: absolute; width: 18px; height: 18px; top: 14px; left: 13px; color: var(--faint); pointer-events: none; }
.filter-chip { min-height: 36px; padding: 0 13px; color: var(--muted); font-size: .75rem; font-weight: 700; background: transparent; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; }
.filter-chip.active { color: var(--green-dark); background: var(--green-soft); border-color: transparent; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.recipe-card { position: relative; display: flex; min-height: 218px; flex-direction: column; padding: 20px; text-align: left; background: rgba(255,253,248,.9); border: 1px solid var(--line); border-radius: 19px; cursor: pointer; transition: transform 150ms ease, box-shadow 150ms ease, border 150ms ease; }
.recipe-card:hover { transform: translateY(-3px); border-color: var(--sage); box-shadow: var(--shadow-small); }
.recipe-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.recipe-symbol { display: grid; width: 44px; height: 44px; place-items: center; font-size: 1.2rem; background: var(--peach-soft); border-radius: 14px; }
.recipe-source { color: var(--faint); font-size: .64rem; font-weight: 750; }
.recipe-card h3 { margin: 18px 0 8px; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.recipe-card-meta { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: .7rem; }
.recipe-macros, .slot-macros { display: block; margin-top: 8px; color: var(--green-dark); font-size: .64rem; font-weight: 750; line-height: 1.35; }
.macro-inputs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.macro-inputs label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 7px; padding: 10px; background: var(--bg); border-radius: 12px; }
.macro-inputs label > span { grid-column: 1 / -1; font-size: .68rem; font-weight: 800; }
.macro-inputs input { min-width: 0; min-height: 38px; padding: 0 8px; font-size: .74rem; }
.macro-inputs small { color: var(--faint); font-size: .58rem; }
.ingredient-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; padding: 7px 10px; color: var(--green-dark); font-size: .7rem; font-weight: 800; background: rgba(255,255,255,.72); border-radius: 10px; }
.ingredient-status.missing { color: #914735; background: var(--coral-soft); }
.has-ingredient > span:first-child { color: var(--green-dark); }
.missing-ingredient > span:first-child { color: #914735; }
.ingredient-toggle { margin-left: 6px; padding: 3px 6px; color: var(--green-dark); font-size: .58rem; font-weight: 800; background: var(--green-soft); border: 0; border-radius: 7px; cursor: pointer; }
.missing-ingredient .ingredient-toggle { color: #914735; background: var(--coral-soft); }

.view-switch { display: flex; gap: 7px; }
.plan-rows { display: grid; gap: 14px; }
.plan-day-row { overflow: hidden; background: rgba(255,253,248,.82); border: 1px solid var(--line); border-radius: 20px; }
.plan-day-row.today { border-color: var(--peach); box-shadow: 0 10px 28px rgba(90,70,50,.07); }
.plan-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 19px; background: rgba(223,234,227,.42); border-bottom: 1px solid var(--line); }
.plan-row-heading strong, .plan-row-heading small { display: block; }
.plan-row-heading strong { font-family: Georgia, serif; font-size: 1rem; text-transform: capitalize; }
.plan-row-heading small { margin-top: 2px; color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.row-energy { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.row-energy span { padding: 5px 8px; color: var(--muted); font-size: .62rem; font-weight: 700; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 99px; }
.row-energy b { color: var(--green-dark); }
.plan-row-meals { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 9px; overflow-x: auto; padding: 12px; }
.plan-row-cell { min-width: 150px; }
.plan-row-cell > small { display: block; margin: 0 0 6px 5px; color: var(--faint); font-size: .61rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.plan-row-cell .meal-slot-group, .plan-row-cell .meal-slot { min-height: 110px; }

.shopping-range { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.shopping-range strong, .shopping-range small { display: block; }
.shopping-range strong { color: var(--green-dark); font-size: .8rem; }
.shopping-range small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.shopping-range-options { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.shopping-session { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 20px; padding: 13px 16px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 15px; }
.shopping-session.active { color: var(--green-dark); background: var(--green-soft); border-style: solid; border-color: var(--sage); }
.shopping-session strong, .shopping-session small { display: block; }
.shopping-session strong { font-size: .79rem; }
.shopping-session small { margin-top: 3px; font-size: .68rem; }
.shopping-session-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.session-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--faint); border-radius: 50%; }
.shopping-session.active .session-dot { background: #4e9370; box-shadow: 0 0 0 4px rgba(78,147,112,.16); }

.tablet-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.home-widget { min-height: 230px; padding: 20px; }
.widget-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.widget-heading .eyebrow { margin-bottom: 4px; font-size: .59rem; }
.widget-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.18rem; font-weight: 600; }
.widget-list { display: grid; gap: 8px; }
.widget-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget-row:last-child { border-bottom: 0; }
.widget-row strong, .widget-row small { display: block; }
.widget-row strong { overflow: hidden; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.widget-row small { margin-top: 2px; color: var(--muted); font-size: .62rem; line-height: 1.35; }
.widget-empty { margin: 24px 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.date-badge, .plant-mark, .team-mark { display: grid; width: 32px; height: 32px; place-items: center; color: var(--green-dark); font-size: .7rem; font-weight: 850; background: var(--green-soft); border-radius: 10px; }
.date-badge { color: #85432e; background: var(--peach-soft); }
.plant-mark.dry { color: #9b4b38; background: var(--coral-soft); }
.dry-text { color: #9b4b38 !important; font-weight: 800; }
.team-mark { color: #715078; background: #efe2f0; border-radius: 50%; }

.start-screen { display: grid; gap: 22px; max-width: 1500px; padding-block: 8px; }
.start-topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(12px, 2vw, 28px) 4px 0; }
.start-topbar h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 5vw, 5.35rem); font-weight: 500; line-height: .94; letter-spacing: -.055em; }
.start-clock { min-width: 190px; padding: 18px 21px; color: var(--green-dark); text-align: right; background: var(--peach-soft); border-radius: 20px; }
.start-clock strong, .start-clock span { display: block; }
.start-clock strong { font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 3.1rem); font-weight: 500; line-height: 1; }
.start-clock span { margin-top: 6px; color: #8d5d42; font-size: .74rem; font-weight: 750; }
.start-primary-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.start-tile { position: relative; display: flex; min-height: 292px; flex-direction: column; align-items: flex-start; overflow: hidden; padding: clamp(26px, 3.2vw, 44px); border-radius: 27px; box-shadow: var(--shadow); }
.start-tile > p { margin: 0 0 12px; font-size: .7rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.start-next-meal { color: white; background: var(--green); }
.start-next-meal::after { position: absolute; width: 300px; height: 300px; top: -130px; right: -70px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ''; }
.start-meal-symbol { display: grid; width: 50px; height: 50px; margin-bottom: 13px; place-items: center; color: var(--green-dark); font-size: 1.35rem; background: var(--peach-soft); border-radius: 16px; }
.start-meal-symbol.smoothie { color: #715078; background: #efe2f0; }
.start-meal-symbol.soup { color: #8b552e; background: #f5e7c9; }
.start-meal-symbol.lunch { background: var(--green-soft); }
.start-meal-symbol.dinner { background: var(--blue-soft); }
.start-tile h2 { max-width: 630px; margin: 0; font-family: Georgia, serif; font-size: clamp(1.75rem, 3.1vw, 2.8rem); font-weight: 500; line-height: 1.08; }
.start-next-meal small { color: rgba(255,255,255,.72); }
.start-tile small { display: block; max-width: 460px; margin: 9px 0 20px; font-size: .82rem; line-height: 1.45; }
.start-tile .button { margin-top: auto; }
.start-shopping-tile { color: var(--green-dark); background: linear-gradient(135deg, var(--peach-soft), #f8efe3); }
.start-shopping-tile > strong { font-family: Georgia, serif; font-size: clamp(4rem, 7vw, 6.5rem); font-weight: 500; line-height: .86; letter-spacing: -.06em; }
.start-shopping-tile h2 { margin-top: 7px; font-size: 1.45rem; }
.start-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.start-widget { min-height: 250px; padding: 22px; background: rgba(255,253,248,.93); border: 1px solid rgba(215,208,195,.75); border-radius: 21px; box-shadow: var(--shadow-small); }
.start-widget-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.start-widget-heading .eyebrow { margin-bottom: 4px; font-size: .58rem; }
.start-widget-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.start-list { display: grid; gap: 9px; }
.start-list > div { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 49px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.start-list > div:last-child { border-bottom: 0; }
.start-list b { display: grid; width: 32px; height: 32px; place-items: center; color: #85432e; font-size: .66rem; background: var(--peach-soft); border-radius: 10px; }
.start-list b.is-dry { color: #9b4b38; background: var(--coral-soft); border-radius: 50%; }
.start-list strong, .start-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.start-list strong { font-size: .77rem; }
.start-list small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.start-empty { margin: 33px 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.start-app-entry { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; color: var(--muted); font-size: .82rem; }
.start-app-entry a { color: var(--green); font-weight: 850; }

.menu-proposals { display: grid; gap: 10px; }
.organizer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.organizer-card { min-height: 280px; padding: 20px; }
.organizer-heading, .organizer-heading > div { display: flex; align-items: flex-start; gap: 10px; }
.organizer-heading { justify-content: space-between; margin-bottom: 16px; }
.organizer-heading h2 { margin: 2px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; font-weight: 500; }
.organizer-heading .eyebrow { margin: 1px 0 0; }
.organizer-icon { display: grid; width: 36px; height: 36px; place-items: center; color: var(--green-dark); background: var(--green-soft); border-radius: 11px; }
.organizer-icon svg { width: 20px; height: 20px; }
.organizer-list { display: grid; }
.organizer-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.organizer-item > div:first-child { min-width: 0; }
.organizer-item strong, .organizer-item small, .organizer-item em { display: block; }
.organizer-item strong { font-size: .8rem; }
.organizer-item small { margin-top: 4px; color: var(--muted); font-size: .67rem; line-height: 1.4; }
.organizer-item em { margin-top: 6px; color: var(--faint); font-size: .64rem; font-style: normal; line-height: 1.4; }
.organizer-item-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; }
.organizer-item.is-past { opacity: .58; }
.meal-picker-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.picker-label { margin: 0 0 9px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.menu-proposal { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px; text-align: left; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 15px; cursor: pointer; }
.menu-proposal:hover { border-color: var(--sage); background: var(--green-soft); }
.proposal-number { display: grid; width: 34px; height: 34px; place-items: center; color: var(--green-dark); font-size: .76rem; font-weight: 850; background: var(--peach-soft); border-radius: 50%; }
.menu-proposal strong, .menu-proposal small, .menu-proposal em { display: block; }
.menu-proposal strong { font-size: .82rem; }
.menu-proposal small { margin-top: 3px; color: var(--green-dark); font-size: .67rem; font-weight: 750; }
.menu-proposal em { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: .65rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.recipe-rating { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 12px; padding: 8px 10px; color: #765028; font-size: .65rem; font-weight: 750; background: #faf0d7; border-radius: 10px; }
.recipe-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 17px; }
.recipe-tags .tag { background: var(--green-soft); }

.recurring-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.recurring-card { padding: 19px; }
.recurring-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.recurring-card h3 { margin: 0; font-size: .88rem; }
.recurring-card .category { display: block; margin-top: 4px; color: var(--faint); font-size: .68rem; }
.due-state { display: inline-flex; min-height: 25px; align-items: center; padding: 0 8px; color: var(--green-dark); font-size: .63rem; font-weight: 800; background: var(--green-soft); border-radius: 99px; }
.due-state.due { color: #8d402e; background: var(--coral-soft); }
.recurring-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.mini-stat { padding: 10px; background: var(--bg); border-radius: 11px; }
.mini-stat span { display: block; color: var(--faint); font-size: .6rem; font-weight: 750; text-transform: uppercase; }
.mini-stat strong { display: block; margin-top: 4px; font-size: .78rem; }
.recurring-actions { display: flex; gap: 7px; }
.recurring-actions .button:first-child { flex: 1; }
.section-block { margin-top: 34px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: .75rem; }
.purchase-list { overflow: hidden; }
.purchase-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 36px; align-items: center; gap: 15px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.purchase-row:last-child { border-bottom: 0; }
.purchase-date { font-size: .75rem; font-weight: 750; }
.purchase-items { overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.purchase-total { font-size: .78rem; font-weight: 800; }
.purchase-detail { min-width: 0; }
.purchase-detail p { margin: 5px 0 0; color: var(--ink); font-size: .7rem; line-height: 1.4; }
.purchase-detail .purchase-no-comment { color: var(--faint); font-style: italic; }
.purchase-side { min-width: 92px; text-align: right; }
.purchase-side strong, .purchase-side small { display: block; }
.purchase-side strong { font-size: .76rem; }
.purchase-side small { margin-top: 3px; color: var(--faint); font-size: .62rem; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: start; gap: 22px; }
.settings-card { padding: 25px; }
.settings-card h2 { margin: 0 0 20px; font-size: 1rem; }
.nutrition-settings { padding: 17px; background: var(--bg); border-radius: 15px; }
.settings-subheading p { margin: 4px 0 14px; }
.calorie-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.calorie-inputs label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; padding: 10px; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 12px; }
.calorie-inputs label > span { grid-column: 1 / -1; font-size: .7rem; font-weight: 800; }
.calorie-inputs input { min-width: 0; min-height: 38px; padding: 0 8px; font-size: .74rem; }
.calorie-inputs small { color: var(--faint); font-size: .58rem; }
.nutrition-source { margin: 13px 0 0; color: var(--faint); font-size: .65rem; line-height: 1.5; }
.nutrition-source a { color: var(--green); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.security-card { padding: 23px; background: var(--green); color: white; border: 0; }
.security-card .security-icon { display: grid; width: 44px; height: 44px; place-items: center; color: var(--green-dark); background: var(--peach); border-radius: 14px; }
.security-card h3 { margin: 17px 0 8px; font-family: Georgia, serif; font-size: 1.25rem; }
.security-card p { margin: 0; color: rgba(255,255,255,.73); font-size: .77rem; line-height: 1.55; }
.status-line { display: flex; align-items: center; gap: 7px; margin-top: 15px; font-size: .73rem; font-weight: 750; }
.status-dot { width: 8px; height: 8px; background: var(--peach); border-radius: 50%; }
.status-dot.off { background: rgba(255,255,255,.38); }
.settings-side { display: grid; gap: 14px; }
.install-card { padding: 22px; background: linear-gradient(145deg, #fffaf0, #edf2e9); }
.install-card-top { display: flex; align-items: center; gap: 13px; }
.install-card-top img { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 14px; box-shadow: 0 7px 18px rgba(36,75,58,.16); }
.install-card .eyebrow { margin-bottom: 3px; font-size: .58rem; }
.install-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1.1rem; font-weight: 600; }
.install-card > p { margin: 13px 0 16px; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.install-card .button { width: 100%; }
.install-card .button:disabled { cursor: default; }

.modal {
  width: min(calc(100% - 28px), 660px);
  max-height: min(88vh, 900px);
  padding: 0;
  color: var(--ink);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 32px 100px rgba(32,45,37,.25);
}
.modal::backdrop { background: rgba(25,38,31,.48); backdrop-filter: blur(4px); }
.modal-shell { max-height: 88vh; overflow-y: auto; }
.modal-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 23px 25px 16px; background: rgba(255,253,248,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.modal-header h2 { margin: 0; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 600; }
.modal-header p { margin: 6px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.4; }
.modal-body { padding: 23px 25px 27px; }
.modal-close { flex: 0 0 auto; }
.recipe-detail-hero { padding: 25px; background: var(--green-soft); }
.recipe-detail-hero h2 { max-width: 480px; margin: 12px 0 9px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .72rem; }
.detail-calories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.detail-calories span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px 5px 5px; color: var(--muted); font-size: .66rem; font-weight: 750; background: rgba(255,255,255,.72); border-radius: 99px; }
.detail-columns { display: grid; grid-template-columns: .9fr 1.1fr; gap: 25px; padding: 25px; }
.detail-columns h3 { margin: 0 0 13px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.ingredient-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.ingredient-list li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; font-size: .75rem; border-bottom: 1px solid var(--line); }
.ingredient-list li span:last-child { color: var(--muted); white-space: nowrap; }
.instructions { color: var(--muted); font-size: .79rem; line-height: 1.68; white-space: pre-line; }
.notes-box { margin-top: 15px; padding: 13px; color: #754631; font-size: .74rem; line-height: 1.5; background: var(--peach-soft); border-radius: 12px; }
.detail-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 25px 25px; }
.dropzone { display: grid; min-height: 190px; place-items: center; padding: 25px; text-align: center; background: var(--bg); border: 1.5px dashed var(--line-strong); border-radius: 17px; cursor: pointer; }
.dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.dropzone-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 12px; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 15px; }
.dropzone strong { display: block; font-size: .86rem; }
.dropzone span { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.receipt-preview { display: block; max-width: 100%; max-height: 260px; margin: 0 auto 15px; object-fit: contain; border-radius: 12px; }
.ai-note { display: flex; gap: 10px; margin-top: 13px; padding: 12px; color: var(--muted); font-size: .72rem; line-height: 1.45; background: var(--green-soft); border-radius: 12px; }
.ai-note strong { color: var(--green-dark); }
.install-help { display: grid; gap: 11px; }
.install-help > section { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 15px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.install-step-number { display: grid; width: 34px; height: 34px; place-items: center; color: var(--green-dark); font-size: .72rem; font-weight: 850; background: var(--green-soft); border-radius: 50%; }
.install-help h3 { margin: 0; font-size: .8rem; }
.install-help p { margin: 5px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.55; }
.recipe-calorie-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.recipe-calorie-fields > label { padding: 11px; background: var(--bg); border-radius: 12px; }
.recipe-calorie-fields > label > span { display: block; margin-bottom: 7px; font-size: .68rem; font-weight: 800; }
.recipe-calorie-fields > label > div { display: flex; align-items: center; gap: 6px; }
.recipe-calorie-fields input { min-width: 0; min-height: 40px; padding: 0 9px; }
.recipe-calorie-fields small { color: var(--faint); font-size: .62rem; }
.rating-grid { display: grid; gap: 9px; }
.rating-person { display: grid; grid-template-columns: 38px minmax(0, 1fr) 130px; align-items: center; gap: 12px; min-width: 0; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.rating-person > span:not(.rating-avatar) b, .rating-person > span:not(.rating-avatar) small { display: block; }
.rating-person > span:not(.rating-avatar) b { font-size: .78rem; }
.rating-person > span:not(.rating-avatar) small { margin-top: 2px; color: var(--faint); font-size: .63rem; }
.rating-person select { min-height: 40px; font-size: .73rem; }
.rating-avatar { display: grid; width: 38px; height: 38px; place-items: center; color: #784d32; font-size: .7rem; font-weight: 850; background: var(--peach-soft); border-radius: 50%; }
.rating-avatar.zuzia { color: #71405a; background: #f3dfeb; }
.rating-avatar.szymek { color: var(--green-dark); background: var(--green-soft); }
.feedback-members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.feedback-member-card { min-width: 0; padding: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.feedback-member-card header { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.feedback-member-card header strong, .feedback-member-card header small { display: block; }
.feedback-member-card header strong { font-size: .78rem; }
.feedback-member-card header small { margin-top: 2px; color: var(--faint); font-size: .61rem; }
.feedback-member-inputs { display: grid; gap: 8px; }
.feedback-member-inputs label > span, .feedback-preparation label > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .62rem; font-weight: 750; }
.feedback-member-inputs select { min-height: 38px; padding: 0 8px; font-size: .69rem; }
.feedback-reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.feedback-reasons label { position: relative; }
.feedback-reasons input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-reasons span { display: block; padding: 5px 7px; color: var(--muted); font-size: .58rem; font-weight: 700; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 99px; cursor: pointer; }
.feedback-reasons input:checked + span { color: var(--green-dark); background: var(--green-soft); border-color: var(--sage); }
.feedback-preparation > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feedback-preparation label { position: relative; }
.feedback-preparation label small { position: absolute; right: 10px; bottom: 13px; color: var(--faint); font-size: .61rem; }
.learned-preferences-card { margin-top: 22px; padding: 22px; }
.learned-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.learned-profile { padding: 15px; background: var(--bg); border: 1px solid var(--line); border-radius: 15px; }
.learned-profile header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.learned-profile header strong, .learned-profile header small { display: block; }
.learned-profile header strong { font-size: .8rem; }
.learned-profile header small { margin-top: 2px; color: var(--faint); font-size: .62rem; }
.learned-group { margin-top: 14px; }
.learned-group > small { display: block; margin-bottom: 6px; color: var(--muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.learned-group > div { display: flex; flex-wrap: wrap; gap: 5px; }
.learned-group em, .learned-empty { color: var(--faint); font-size: .65rem; font-style: normal; line-height: 1.45; }
.learned-chip { padding: 6px 8px; font-size: .62rem; font-weight: 700; border-radius: 99px; }
.learned-chip b { margin-left: 3px; opacity: .62; }
.learned-chip.positive { color: var(--green-dark); background: var(--green-soft); }
.learned-chip.negative { color: #8d402e; background: var(--coral-soft); }
fieldset.rating-person { margin: 0; }
.child-rating-options { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.child-rating-options label { position: relative; }
.child-rating-options input { position: absolute; opacity: 0; pointer-events: none; }
.child-rating-options span { display: flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 7px; color: var(--muted); font-size: .67rem; font-weight: 750; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.child-rating-options input:checked + span { color: var(--green-dark); background: var(--green-soft); border-color: var(--sage); }
.child-rating-options input[value="false"]:checked + span { color: #8d402e; background: var(--coral-soft); border-color: var(--peach); }
.child-rating-options input:focus-visible + span { outline: 3px solid rgba(49,95,74,.2); outline-offset: 2px; }

.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 240px; max-width: 390px; padding: 13px 16px; color: white; font-size: .78rem; font-weight: 650; line-height: 1.4; background: var(--green-dark); border-radius: 12px; box-shadow: var(--shadow); animation: toast-in 180ms ease both; }
.toast.error { background: #9a4b3a; }
.loading-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1120px) {
  .recipe-grid, .recurring-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopping-layout { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: repeat(2, 1fr); }
  .tablet-home-grid { grid-template-columns: 1fr 1fr; }
  .tablet-home-grid .sports-widget { grid-column: 1 / -1; }
  .start-widgets { grid-template-columns: 1fr 1fr; }
  .start-games { grid-column: 1 / -1; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --mobile-header: 68px; --bottom-nav: 71px; }
  .sidebar { display: none; }
  .mobile-header { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; height: var(--mobile-header); align-items: center; justify-content: space-between; padding: 0 18px; background: rgba(247,242,232,.9); border-bottom: 1px solid rgba(215,208,195,.72); backdrop-filter: blur(16px); }
  .mobile-header .brand { padding: 0; }
  .mobile-header .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .mobile-header .brand strong { font-size: 1.2rem; }
  .avatar-button { width: 38px; height: 38px; }
  .bottom-nav { position: fixed; z-index: 20; inset: auto 0 0; display: grid; height: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); grid-template-columns: repeat(7, 1fr); padding: 6px 5px env(safe-area-inset-bottom); background: rgba(255,253,248,.94); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
  .bottom-nav a { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: var(--faint); font-size: .6rem; font-weight: 750; border-radius: 12px; }
  .bottom-nav a.active { color: var(--green); background: var(--green-soft); }
  .bottom-nav .nav-icon, .bottom-nav .nav-icon svg { width: 19px; height: 19px; }
  .bottom-nav .nav-badge { position: absolute; top: 2px; right: calc(50% - 21px); min-width: 17px; padding: 2px 4px; font-size: .55rem; }
  .page { width: 100%; min-height: 100vh; margin: 0; padding: calc(var(--mobile-header) + 25px) 17px calc(var(--bottom-nav) + 34px + env(safe-area-inset-bottom)); }
  .page-header { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .page-header h1 { font-size: 2.1rem; }
  .page-actions { width: 100%; justify-content: flex-start; }
  .hero { min-height: 265px; grid-template-columns: 1fr; padding: 28px; }
  .hero-note { display: none; }
  .dashboard-grid, .dashboard-bottom, .settings-grid, .organizer-grid { grid-template-columns: 1fr; }
  .feedback-reminder { align-items: flex-start; flex-direction: column; }
  .feedback-members, .learned-profile-grid { grid-template-columns: 1fr; }
  .week-grid { margin-right: -17px; padding-right: 17px; }
  .week-toolbar { align-items: flex-start; flex-direction: column-reverse; }
  .week-switcher { width: 100%; justify-content: space-between; }
  .recipe-grid, .recurring-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-card { min-height: 205px; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-columns { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .seasonal-card { grid-template-columns: 1fr; }
  .plan-row-heading { align-items: flex-start; flex-direction: column; }
  .row-energy { justify-content: flex-start; }
  .macro-inputs { grid-template-columns: repeat(2, 1fr); }
  .start-primary-grid { grid-template-columns: 1fr; }
  .start-widgets { grid-template-columns: 1fr; }
  .start-games { grid-column: auto; }
  .start-topbar { align-items: flex-start; flex-direction: column; }
  .start-clock { text-align: left; }
}

@media (max-width: 560px) {
  .login-view { padding: 15px; }
  .login-card { padding: 36px 22px; border-radius: 27px; }
  .password-row { flex-direction: column; }
  .password-row .button { width: 100%; }
  .hero { min-height: 235px; border-radius: 22px; }
  .hero h1 { font-size: 2.25rem; }
  .card-pad { padding: 18px; }
  .today-meal { grid-template-columns: 42px minmax(0,1fr); }
  .today-meal .batch-chip { display: none; }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .recipe-grid, .recurring-grid { grid-template-columns: 1fr; }
  .page-actions .button { flex: 1; }
  .side-stack { grid-template-columns: 1fr; }
  .add-shop-form { grid-template-columns: minmax(0, 1fr) 76px; }
  .add-shop-form select { display: none; }
  .shopping-groups { padding-inline: 14px; }
  .shopping-summary { padding-inline: 15px; }
  .shopping-item { grid-template-columns: 27px minmax(0,1fr) auto 29px; }
  .shopping-item > .shopping-check { grid-column: 1; grid-row: 1; }
  .shopping-item > .shop-name { grid-column: 2; grid-row: 1; }
  .shopping-item > .shop-meta { grid-column: 3; grid-row: 1; }
  .shopping-item > .icon-button { grid-column: 4; grid-row: 1; }
  .shopping-item > .shop-tools { grid-column: 2 / 4; grid-row: 2; }
  .inventory-grid { grid-template-columns: 1fr; }
  .shopping-stale { align-items: flex-start; flex-direction: column; }
  .shopping-stale .button { width: 100%; }
  .modal-header, .modal-body { padding-left: 18px; padding-right: 18px; }
  .detail-columns, .recipe-detail-hero { padding: 20px; }
  .detail-actions { padding: 0 20px 20px; flex-wrap: wrap; }
  .purchase-row { grid-template-columns: 90px minmax(0,1fr); }
  .purchase-total { display: none; }
  .purchase-side { display: none; }
  .purchase-row > .icon-button { grid-column: 2; justify-self: end; margin-top: -37px; }
  .member-picker, .recipe-calorie-fields, .calorie-inputs { grid-template-columns: 1fr; }
  .macro-inputs, .tablet-home-grid { grid-template-columns: 1fr; }
  .tablet-home-grid .sports-widget { grid-column: auto; }
  .shopping-session { align-items: flex-start; flex-direction: column; }
  .shopping-session-actions { width: 100%; flex-direction: column; }
  .shopping-session .button { width: 100%; }
  .shopping-range { align-items: flex-start; flex-direction: column; }
  .shopping-range-options { width: 100%; justify-content: flex-start; }
  .plan-row-meals { grid-template-columns: 1fr; overflow: visible; }
  .plan-row-cell { min-width: 0; }
  .rating-person { grid-template-columns: 38px minmax(0, 1fr); }
  .rating-person select, .child-rating-options { grid-column: 1 / -1; }
  .toast-region { right: 12px; bottom: calc(var(--bottom-nav) + 12px); left: 12px; }
  .toast { min-width: 0; max-width: none; }
  .start-screen { gap: 16px; }
  .start-topbar h1 { font-size: 2.65rem; }
  .start-tile { min-height: 255px; padding: 26px; }
  .start-widgets { gap: 13px; }
  .start-widget { min-height: 0; padding: 19px; }
  .start-app-entry { align-items: center; flex-direction: column; gap: 4px; padding-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Tabletowy ekran ambient — celowo bez stałego menu. */
.app-shell.start-mode .sidebar, .app-shell.start-mode .mobile-header, .app-shell.start-mode .bottom-nav { display: none; }
.app-shell.start-mode .page { width: 100%; max-width: 1800px; margin: 0; padding: clamp(20px, 3vw, 52px); }
.ambient-start { display: grid; gap: clamp(14px, 2vw, 22px); max-width: 1540px; margin: 0 auto; }
.ambient-hero { position: relative; display: grid; min-height: min(54vh, 520px); align-content: space-between; overflow: hidden; padding: clamp(30px, 5vw, 70px); color: #fff; background: radial-gradient(circle at 77% 22%, rgba(168,198,183,.28), transparent 23%), linear-gradient(135deg, #173a31, #315f4a 58%, #406f58); border-radius: 34px; box-shadow: 0 24px 70px rgba(34,67,53,.22); isolation: isolate; }
.ambient-orb { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; animation: ambient-float 9s ease-in-out infinite; }
.ambient-orb.orb-one { width: min(47vw, 650px); height: min(47vw, 650px); top: -35%; right: -8%; background: rgba(255,255,255,.055); }
.ambient-orb.orb-two { width: min(26vw, 360px); height: min(26vw, 360px); bottom: -30%; right: 25%; background: rgba(245,206,159,.13); animation-delay: -4s; }
.ambient-time time, .ambient-time span { display: block; }
.ambient-time time { font-family: Georgia, serif; font-size: clamp(5.6rem, 14vw, 12rem); font-weight: 400; letter-spacing: -.08em; line-height: .76; }
.ambient-time span { margin-top: 20px; color: rgba(255,255,255,.75); font-size: clamp(.9rem, 1.6vw, 1.22rem); font-weight: 750; text-transform: capitalize; }
.ambient-event { display: flex; align-items: center; gap: 13px; max-width: 560px; margin-top: 28px; }
.ambient-event > span { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: #f8dfbb; font-size: 1.25rem; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.ambient-event small, .ambient-event strong { display: block; }
.ambient-event small { margin-bottom: 3px; color: rgba(255,255,255,.58); font-size: .58rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.ambient-event strong { font-family: Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 500; line-height: 1.2; }
.ambient-hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.ambient-enter, .ambient-shopping { display: inline-flex; align-items: center; justify-content: center; color: var(--green-dark); background: #fffdf8; border-radius: 15px; box-shadow: 0 12px 32px rgba(0,0,0,.14); transition: transform 160ms ease, box-shadow 160ms ease; }
.ambient-enter:hover, .ambient-shopping:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,0,0,.2); }
.ambient-enter { min-height: 56px; gap: 10px; padding: 0 20px; font-size: .88rem; font-weight: 850; }
.ambient-enter svg { width: 22px; height: 22px; }
.ambient-shopping { position: relative; width: 56px; height: 56px; }
.ambient-shopping svg { width: 22px; height: 22px; }
.ambient-shopping b { position: absolute; top: -7px; right: -6px; display: grid; min-width: 22px; height: 22px; padding: 0 5px; place-items: center; color: #fff; font-size: .61rem; background: var(--coral); border: 2px solid var(--green); border-radius: 50%; }
.ambient-strip { display: grid; grid-template-columns: 1.1fr 1.1fr .8fr; gap: clamp(12px, 1.7vw, 20px); }
.ambient-card, .ambient-quote, .ambient-game { background: rgba(255,253,248,.92); border: 1px solid rgba(215,208,195,.78); border-radius: 21px; box-shadow: var(--shadow-small); }
.ambient-card { display: flex; min-height: 128px; align-items: center; gap: 14px; padding: 18px; }
.ambient-card small, .ambient-card strong, .ambient-card p { display: block; margin: 0; }
.ambient-card small { margin-bottom: 4px; color: var(--faint); font-size: .58rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ambient-card strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.ambient-card p { max-width: 300px; margin-top: 5px; color: var(--muted); font-size: .67rem; line-height: 1.35; }
.ambient-plant-icon { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; color: var(--green-dark); font-size: 2.2rem; background: var(--green-soft); border-radius: 18px; transition: color 500ms ease, background 500ms ease; }
.ambient-plant.needs-care .ambient-plant-icon { color: #914735; background: var(--coral-soft); animation: plant-pulse 2.7s ease-in-out infinite; }
.ambient-check { min-height: 36px; margin-left: auto; padding: 0 10px; color: var(--green-dark); font-size: .66rem; font-weight: 850; background: var(--green-soft); border: 0; border-radius: 10px; cursor: pointer; }
.needs-care .ambient-check { color: #fff; background: var(--coral); }
.ambient-moon-icon { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; font-size: 2rem; background: #e9e8f4; border-radius: 50%; }
.ambient-quote { display: flex; min-height: 128px; align-items: center; gap: 10px; padding: 17px 20px; color: #735137; background: linear-gradient(145deg, #fff9ee, #f8eadc); }
.ambient-quote > span { align-self: flex-start; color: var(--peach); font-family: Georgia, serif; font-size: 3.6rem; line-height: .7; }
.ambient-quote p { margin: 0; font-family: Georgia, serif; font-size: clamp(.94rem, 1.4vw, 1.14rem); line-height: 1.35; }
.ambient-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 20px); }
.ambient-game { display: flex; min-height: 105px; align-items: center; gap: 13px; padding: 16px; }
.team-crest { display: grid; width: 52px; height: 52px; flex: 0 0 auto; place-items: center; color: #fff; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -.08em; border: 3px solid rgba(255,255,255,.8); border-radius: 50%; box-shadow: 0 5px 13px rgba(53,60,50,.12); }
.team-crest.juventus { color: #161616; background: repeating-linear-gradient(90deg, #fff 0 8px, #161616 8px 15px); }
.team-crest.zawisza { background: linear-gradient(135deg, #174b91, #2669bc); }
.team-crest.astoria { background: linear-gradient(135deg, #de921e, #b35d11); }
.ambient-game strong, .ambient-game small { display: block; }
.ambient-game strong { font-size: .82rem; }
.ambient-game small { margin-top: 4px; color: var(--muted); font-size: .65rem; line-height: 1.35; }
.ambient-game .icon-button { margin-left: auto; color: var(--green-dark); background: var(--green-soft); }
@keyframes ambient-float { 50% { transform: translate3d(-12px, 15px, 0) scale(1.035); } }
@keyframes plant-pulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 9px rgba(216,120,95,.12); } }

@media (max-width: 820px) {
  .app-shell.start-mode .page { padding: 17px 17px 25px; }
  .ambient-hero { min-height: 470px; border-radius: 26px; }
  .ambient-strip { grid-template-columns: 1fr 1fr; }
  .ambient-quote { grid-column: 1 / -1; min-height: 94px; }
  .ambient-games { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ambient-hero { min-height: 420px; padding: 28px; }
  .ambient-time time { font-size: 5rem; }
  .ambient-strip { grid-template-columns: 1fr; }
  .ambient-quote { grid-column: auto; }
  .ambient-card, .ambient-quote { min-height: 106px; }
}

/* Wersja oparta na szkicu: czytelny czas i cztery równe funkcje. */
.tablet-start { display: grid; gap: 18px; max-width: 1500px; margin: 0 auto; }
.tablet-start-bar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.tablet-wordmark { color: var(--green-dark); font-family: Georgia, serif; font-size: 1.32rem; font-weight: 600; }
.tablet-menu { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 13px; color: var(--green-dark); font-size: .72rem; font-weight: 850; background: var(--surface-strong); border: 1px solid var(--line); border-radius: 12px; }
.tablet-menu svg { width: 18px; height: 18px; }
.tablet-start-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(380px, .9fr); gap: 18px; }
.tablet-focus-card { position: relative; display: flex; min-height: 510px; flex-direction: column; padding: clamp(32px, 4vw, 60px); overflow: hidden; color: var(--ink); background: linear-gradient(145deg, #fffdf8, #f7eadc); border: 1px solid rgba(232,181,133,.5); border-radius: 30px; box-shadow: var(--shadow); }
.tablet-focus-card::after { position: absolute; width: 390px; height: 390px; right: -195px; bottom: -220px; background: rgba(232,181,133,.2); border: 1px solid rgba(232,181,133,.35); border-radius: 50%; content: ''; animation: ambient-float 12s ease-in-out infinite; }
.tablet-focus-card time { position: relative; z-index: 1; font-family: Georgia, serif; font-size: clamp(6rem, 13vw, 10.7rem); font-weight: 400; letter-spacing: -.09em; line-height: .8; }
.tablet-focus-card > p { position: relative; z-index: 1; margin: 18px 0 0; color: var(--muted); font-size: clamp(.95rem, 1.5vw, 1.18rem); font-weight: 750; text-transform: capitalize; }
.tablet-event { position: relative; z-index: 1; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; max-width: 520px; margin-top: auto; padding: 15px; background: rgba(255,255,255,.7); border: 1px solid rgba(232,181,133,.36); border-radius: 17px; }
.tablet-event > span { display: grid; width: 40px; height: 40px; place-items: center; color: #8a593d; background: var(--peach-soft); border-radius: 12px; }
.tablet-event svg { width: 21px; height: 21px; }
.tablet-event strong { font-family: Georgia, serif; font-size: 1.14rem; font-weight: 500; }
.tablet-event small { grid-column: 2; margin-top: -7px; color: var(--muted); font-size: .65rem; font-weight: 750; }
.tablet-focus-bottom { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 17px; }
.tablet-enter { display: inline-flex; min-height: 49px; align-items: center; gap: 9px; padding: 0 16px; color: #fff; font-size: .76rem; font-weight: 850; background: var(--green); border-radius: 14px; box-shadow: 0 8px 20px rgba(49,95,74,.22); }
.tablet-enter svg { width: 20px; height: 20px; }
.tablet-focus-bottom p { max-width: 280px; margin: 0; color: #765841; font-family: Georgia, serif; font-size: .85rem; font-style: italic; line-height: 1.35; }
.tablet-icon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tablet-icon-card { position: relative; display: flex; min-height: 0; flex-direction: column; justify-content: center; padding: clamp(19px, 2vw, 30px); color: var(--green-dark); background: rgba(255,253,248,.92); border: 1px solid rgba(215,208,195,.78); border-radius: 24px; box-shadow: var(--shadow-small); transition: transform 160ms ease, box-shadow 160ms ease; }
.tablet-icon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tablet-icon-card > svg { width: clamp(35px, 4vw, 49px); height: clamp(35px, 4vw, 49px); margin-bottom: auto; padding: 9px; color: var(--green-dark); background: var(--green-soft); border-radius: 15px; }
.tablet-icon-card.shopping > svg { color: #87523a; background: var(--peach-soft); }
.tablet-icon-card.moon > svg { color: #686280; background: #e8e7f1; }
.tablet-icon-card.sports > svg { color: #2d5c94; background: #e0ecf6; }
.tablet-icon-card strong { margin-top: 14px; overflow: hidden; font-family: Georgia, serif; font-size: clamp(1rem, 1.7vw, 1.4rem); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.tablet-icon-card small { margin-top: 4px; color: var(--muted); font-size: .63rem; font-weight: 750; }
.tablet-icon-card > button { position: absolute; top: 17px; right: 17px; display: grid; width: 30px; height: 30px; padding: 0; place-items: center; color: var(--green-dark); font-size: .75rem; font-weight: 900; background: var(--green-soft); border: 0; border-radius: 50%; cursor: pointer; }
.tablet-icon-card.plant.needs-care > svg, .tablet-icon-card.plant.needs-care > button { color: #913f31; background: var(--coral-soft); }
.tablet-icon-card.plant.needs-care > svg { animation: plant-pulse 2.7s ease-in-out infinite; }
.compact-crests { display: flex; gap: 4px; margin-top: auto; }
.compact-crests .team-crest { width: 30px; height: 30px; font-size: .78rem; border-width: 2px; }
.tablet-matches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tablet-matches article { display: flex; min-height: 83px; align-items: center; gap: 11px; padding: 13px 16px; background: rgba(255,253,248,.88); border: 1px solid rgba(215,208,195,.74); border-radius: 17px; }
.tablet-matches .team-crest { width: 43px; height: 43px; font-size: 1.02rem; }
.tablet-matches strong, .tablet-matches small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tablet-matches strong { font-size: .76rem; }
.tablet-matches small { margin-top: 4px; color: var(--muted); font-size: .62rem; }
.tablet-matches button { width: 28px; height: 28px; margin-left: auto; color: var(--green-dark); background: var(--green-soft); border: 0; border-radius: 50%; cursor: pointer; }
@media (max-width: 900px) {
  .tablet-start-layout { grid-template-columns: 1fr; }
  .tablet-focus-card { min-height: 430px; }
}
@media (max-width: 560px) {
  .tablet-start-layout, .tablet-icon-grid, .tablet-matches { grid-template-columns: 1fr 1fr; }
  .tablet-focus-card { grid-column: 1 / -1; min-height: 390px; padding: 30px; }
  .tablet-focus-card time { font-size: 5.4rem; }
  .tablet-focus-bottom { align-items: flex-start; flex-direction: column; }
  .tablet-focus-bottom p { display: none; }
  .tablet-matches article { grid-column: 1 / -1; }
}

/* Ekran startowy: kafelki są przede wszystkim czytelnymi wskaźnikami stanu. */
.tablet-time-weather { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.tablet-time-weather time { position: static; }
.tablet-time-weather p { margin: 18px 0 0; color: var(--muted); font-size: clamp(.95rem, 1.5vw, 1.18rem); font-weight: 750; text-transform: capitalize; }
.weather-mark { display: grid; min-width: 112px; min-height: 112px; padding: 0; place-items: center; align-content: center; color: #bd7c25; background: rgba(255,237,184,.7); border: 1px solid rgba(225,176,74,.35); border-radius: 28px; cursor: pointer; }
.weather-mark:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(189,124,37,.14); }
.weather-mark i { font-size: 4.25rem; font-style: normal; line-height: .9; }
.weather-mark small { margin-top: 4px; font-size: 1.1rem; font-weight: 900; }
.tablet-focus-bottom { display: block; margin-top: 17px; }
.tablet-focus-bottom p { max-width: none; width: 100%; padding: 16px 22px; color: #765841; text-align: center; background: rgba(255,255,255,.5); border: 1px solid rgba(232,181,133,.27); border-radius: 16px; }
.tablet-icon-grid { grid-template-rows: repeat(3, minmax(138px, 1fr)); }
.tablet-icon-card { align-items: center; justify-content: center; min-height: 138px; padding: 16px; text-align: center; overflow: hidden; }
.tablet-icon-card > svg { width: min(72%, 128px); height: min(72%, 128px); margin: 0; padding: 0; color: currentColor; background: transparent; border-radius: 0; }
.tablet-icon-card strong { position: relative; z-index: 1; max-width: 100%; margin-top: 5px; font-size: clamp(.86rem, 1.25vw, 1.05rem); }
.tablet-icon-card small { position: relative; z-index: 1; max-width: 100%; margin-top: 2px; font-size: .6rem; }
.tablet-icon-card > button { z-index: 2; top: 12px; right: 12px; }
.tablet-icon-card.shopping.good, .tablet-icon-card.plant.good { color: #3b875e; background: #e3f1e8; border-color: #b5dbbf; }
.tablet-icon-card.shopping.medium, .tablet-icon-card.plant.medium { color: #b98a1f; background: #fff3cf; border-color: #eed487; }
.tablet-icon-card.shopping.poor, .tablet-icon-card.plant.poor { color: #bf5548; background: #fbe3de; border-color: #edbbb2; }
.tablet-icon-card.plant.poor > svg { animation: plant-pulse 2.7s ease-in-out infinite; }
.tablet-icon-card.shopping > svg, .tablet-icon-card.moon > svg, .tablet-icon-card.sports > svg { color: currentColor; background: transparent; }
.tablet-icon-card.moon { color: #625a91; background: #eceaf8; border-color: #d3cfea; }
.astro-symbol { display: grid; width: min(72%, 128px); height: min(72%, 128px); place-items: center; font-size: clamp(5.6rem, 9vw, 8.6rem); line-height: .7; }
.tablet-icon-card.sports { color: #2d5c94; background: #e2eef8; border-color: #c0d6eb; }
.compact-crests { position: absolute; bottom: 14px; left: 50%; z-index: 1; margin: 0; transform: translateX(-50%); }
.compact-crests .team-crest { width: 26px; height: 26px; font-size: .65rem; }
.tablet-icon-card.sports small { position: absolute; right: 0; bottom: 13px; left: 0; }
.tablet-icon-card.app-entry { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 10px 25px rgba(49,95,74,.23); }
.tablet-icon-card.app-entry > svg { color: #fff; }
.tablet-icon-card.app-entry small { color: rgba(255,255,255,.8); }
.tablet-matches article { position: relative; gap: 9px; }
.match-sport { display: grid; flex: 0 0 auto; width: 35px; height: 35px; place-items: center; color: var(--green-dark); background: var(--green-soft); border-radius: 11px; }
.match-sport svg { width: 22px; height: 22px; }
.tablet-matches .team-crest { width: 36px; height: 36px; font-size: .85rem; }
.tablet-matches article > span:nth-of-type(3) { min-width: 0; }

@media (max-width: 560px) {
  .tablet-start-layout { grid-template-columns: 1fr; }
  .tablet-icon-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, minmax(132px, 1fr)); }
  .tablet-focus-bottom { display: block; }
  .tablet-focus-bottom p { display: block; font-size: .76rem; }
  .weather-mark { min-width: 76px; min-height: 76px; border-radius: 22px; }
  .weather-mark i { font-size: 3rem; }
  .weather-mark small { font-size: .85rem; }
  .tablet-icon-card.app-entry { grid-column: 1 / -1; width: calc(50% - 9px); }
  .tablet-matches { grid-template-columns: 1fr; }
}

/* Ekran startowy Japandi: jedna kreska ikon, ciepłe materiały i typografia czytelna z dystansu. */
.app-shell.start-mode .page {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .7), transparent 28rem),
    #f1ede5;
}

.tablet-start {
  gap: 20px;
  max-width: 1460px;
}

.tablet-start-bar {
  min-height: 44px;
  padding: 0 4px;
  border-bottom: 1px solid #d9d1c5;
}

.tablet-wordmark {
  color: #34483d;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -.025em;
}

.tablet-menu {
  min-height: 42px;
  padding: 0 15px;
  color: #405247;
  font-size: .82rem;
  background: rgba(250, 247, 240, .82);
  border-color: #d8d0c4;
  border-radius: 999px;
  box-shadow: none;
}

.tablet-menu svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.tablet-start-layout {
  grid-template-columns: minmax(0, 1.48fr) minmax(410px, .92fr);
  gap: 20px;
}

.tablet-focus-card {
  min-height: 474px;
  padding: clamp(30px, 3.5vw, 50px);
  color: #2e3d35;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, .42) 0 9rem, transparent 9.1rem),
    linear-gradient(145deg, #eee7dc, #e5dbce);
  border: 1px solid #d6c8b7;
  border-radius: 28px;
  box-shadow: 0 18px 46px rgba(61, 68, 61, .09);
}

.tablet-focus-card::before {
  position: absolute;
  width: 1px;
  height: 42%;
  top: 0;
  right: 22%;
  background: rgba(116, 93, 70, .12);
  content: '';
}

.tablet-focus-card::after {
  width: 330px;
  height: 330px;
  right: -185px;
  bottom: -210px;
  background: rgba(139, 112, 83, .07);
  border-color: rgba(112, 88, 63, .14);
  animation: none;
}

.tablet-time-weather {
  gap: 30px;
}

.tablet-clock time {
  position: static;
  display: block;
  color: #30443a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.8rem, 11vw, 8.7rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .78;
}

.tablet-time-weather .tablet-clock p {
  margin: 20px 0 0;
  color: #59665f;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: capitalize;
}

.weather-mark {
  display: flex;
  width: 112px;
  min-width: 112px;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 10px;
  color: #6f5d43;
  background: rgba(248, 244, 235, .72);
  border: 1px solid #d4c7b7;
  border-radius: 50%;
  box-shadow: none;
  transition: transform 160ms ease, background 160ms ease;
}

.weather-mark:hover {
  background: #f8f4eb;
  box-shadow: none;
}

.weather-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
}

.weather-icon svg {
  width: 42px;
  height: 42px;
}

.weather-copy,
.weather-copy strong,
.weather-copy small {
  display: block;
}

.weather-copy {
  max-width: 88px;
  text-align: center;
}

.weather-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
}

.weather-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #6f675d;
  font-size: .72rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tablet-event {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 680px;
  margin-top: auto;
  padding: 17px 19px;
  background: rgba(250, 247, 240, .73);
  border: 1px solid #d6c9b9;
  border-radius: 18px;
}

.tablet-event > .tablet-event-icon {
  width: 54px;
  height: 54px;
  color: #40574a;
  background: #e2e4db;
  border: 1px solid #ccd2c8;
  border-radius: 16px;
}

.tablet-event-icon svg {
  width: 27px;
  height: 27px;
}

.tablet-event div {
  min-width: 0;
}

.tablet-event small,
.tablet-event strong,
.tablet-event time {
  display: block;
}

.tablet-event small {
  margin: 0 0 4px;
  color: #7e6956;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.tablet-event strong {
  overflow: hidden;
  color: #2f3f36;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.48rem, 2.15vw, 1.9rem);
  font-weight: 500;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tablet-event time {
  position: static;
  margin-top: 5px;
  color: #5d6962;
  font-family: inherit;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: capitalize;
}

.tablet-quote {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 15px 0 0;
  padding: 15px 20px 15px 25px;
  color: #51473f;
  background: rgba(255, 253, 248, .42);
  border: 0;
  border-left: 2px solid #ad8c70;
  border-radius: 0 14px 14px 0;
}

.tablet-quote span {
  display: block;
  margin-bottom: 5px;
  color: #7c6858;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tablet-quote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  line-height: 1.4;
}

.tablet-icon-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-height: 474px;
}

.tablet-icon-card,
.tablet-icon-card.shopping.good,
.tablet-icon-card.shopping.medium,
.tablet-icon-card.shopping.poor,
.tablet-icon-card.plant.good,
.tablet-icon-card.plant.medium,
.tablet-icon-card.plant.poor,
.tablet-icon-card.moon,
.tablet-icon-card.app-entry {
  width: auto;
  min-height: 0;
  grid-column: auto;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(20px, 2.3vw, 30px);
  overflow: hidden;
  color: #34483d;
  text-align: left;
  background: rgba(249, 246, 239, .9);
  border: 1px solid #d8d0c4;
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(63, 69, 62, .055);
}

.tablet-icon-card.app-entry {
  background: #e5e8df;
  border-color: #cdd3c8;
}

.tablet-icon-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(63, 69, 62, .09);
}

.tablet-card-icon {
  display: grid;
  width: clamp(70px, 7vw, 88px);
  height: clamp(70px, 7vw, 88px);
  margin-bottom: auto;
  place-items: center;
  color: #40574a;
  background: #e7e2d8;
  border: 1px solid #d6cec1;
  border-radius: 25px;
}

.tablet-card-icon svg {
  width: 52%;
  height: 52%;
}

.tablet-icon-card.shopping.good .tablet-card-icon,
.tablet-icon-card.plant.good .tablet-card-icon {
  color: #526c5d;
  background: #e1e5dc;
  border-color: #cad3c8;
}

.tablet-icon-card.shopping.medium .tablet-card-icon,
.tablet-icon-card.plant.medium .tablet-card-icon {
  color: #806d4d;
  background: #ede5d5;
  border-color: #dbceb8;
}

.tablet-icon-card.shopping.poor .tablet-card-icon,
.tablet-icon-card.plant.poor .tablet-card-icon {
  color: #855d51;
  background: #eaded7;
  border-color: #d8c4bb;
}

.tablet-card-kicker {
  display: block;
  margin-top: 18px;
  color: #7a6b5e;
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tablet-icon-card strong {
  max-width: 100%;
  margin-top: 5px;
  color: #2f4037;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.08;
}

.tablet-icon-card small,
.tablet-icon-card.app-entry small {
  max-width: 100%;
  margin-top: 7px;
  overflow: hidden;
  color: #657169;
  font-size: clamp(.78rem, 1.05vw, .91rem);
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tablet-icon-card > button {
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  color: #40574a;
  font-size: 1rem;
  background: #e5e8df;
  border: 1px solid #ccd3c9;
}

.tablet-icon-card.plant.poor > button {
  color: #855d51;
  background: #eaded7;
  border-color: #d8c4bb;
}

.tablet-match-section {
  display: grid;
  gap: 13px;
}

.tablet-match-heading {
  display: flex;
  min-height: 42px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px;
}

.tablet-match-heading span,
.tablet-match-heading h2 {
  display: block;
  margin: 0;
}

.tablet-match-heading span {
  margin-bottom: 3px;
  color: #806c5b;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tablet-match-heading h2 {
  color: #34483d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
}

.tablet-match-heading button {
  min-height: 38px;
  padding: 0 13px;
  color: #405247;
  font-size: .78rem;
  font-weight: 800;
  background: transparent;
  border: 1px solid #d3cabd;
  border-radius: 999px;
  cursor: pointer;
}

.tablet-matches {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tablet-matches article {
  min-height: 104px;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(249, 246, 239, .88);
  border: 1px solid #d8d0c4;
  border-radius: 19px;
}

.match-sport {
  width: 50px;
  height: 50px;
  color: #40574a;
  background: #e4e5dc;
  border: 1px solid #cfd3c9;
  border-radius: 16px;
}

.match-sport svg {
  width: 27px;
  height: 27px;
}

.match-copy {
  min-width: 0;
}

.tablet-matches .match-team,
.tablet-matches strong,
.tablet-matches time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tablet-matches .match-team {
  margin: 0 0 4px;
  color: #806c5b;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tablet-matches strong {
  color: #304138;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  font-weight: 500;
}

.tablet-matches time {
  margin-top: 6px;
  color: #657169;
  font-size: clamp(.78rem, 1vw, .9rem);
  font-weight: 650;
  text-transform: capitalize;
}

.tablet-matches article > button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  margin-left: auto;
  place-items: center;
  color: #40574a;
  font-size: 1rem;
  background: #e5e8df;
  border: 1px solid #ccd3c9;
  border-radius: 50%;
}

@media (max-width: 1050px) {
  .tablet-start-layout { grid-template-columns: 1fr; }
  .tablet-icon-grid { min-height: 440px; }
}

@media (max-width: 760px) {
  .app-shell.start-mode .page { padding: 16px 16px 28px; }
  .tablet-start { gap: 16px; }
  .tablet-start-layout { gap: 16px; }
  .tablet-focus-card { min-height: 450px; padding: 26px; border-radius: 24px; }
  .tablet-clock time { font-size: clamp(5rem, 20vw, 7rem); }
  .weather-mark { width: 88px; min-width: 88px; min-height: 88px; }
  .weather-icon { width: 36px; height: 36px; }
  .weather-icon svg { width: 34px; height: 34px; }
  .tablet-event { grid-template-columns: 48px minmax(0, 1fr); padding: 15px; }
  .tablet-event > .tablet-event-icon { width: 48px; height: 48px; }
  .tablet-event strong { font-size: clamp(1.3rem, 5vw, 1.65rem); }
  .tablet-quote p { font-size: clamp(1.05rem, 4vw, 1.25rem); }
  .tablet-icon-grid { min-height: 400px; }
  .tablet-matches { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .tablet-menu span { display: none; }
  .tablet-menu { width: 42px; padding: 0; justify-content: center; }
  .tablet-time-weather { gap: 15px; }
  .tablet-focus-card { min-height: 470px; padding: 22px; }
  .tablet-clock time { font-size: clamp(4.2rem, 21vw, 5.6rem); }
  .tablet-time-weather .tablet-clock p { margin-top: 14px; font-size: .98rem; }
  .weather-mark { width: 76px; min-width: 76px; min-height: 76px; padding: 8px; }
  .weather-copy small { display: none; }
  .tablet-event { grid-template-columns: 1fr; gap: 10px; }
  .tablet-event > .tablet-event-icon { width: 44px; height: 44px; }
  .tablet-event strong { white-space: normal; }
  .tablet-event time { font-size: .9rem; }
  .tablet-quote { padding: 13px 15px 13px 18px; }
  .tablet-icon-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, minmax(180px, 1fr)); min-height: 376px; gap: 11px; }
  .tablet-icon-card,
  .tablet-icon-card.shopping.good,
  .tablet-icon-card.shopping.medium,
  .tablet-icon-card.shopping.poor,
  .tablet-icon-card.plant.good,
  .tablet-icon-card.plant.medium,
  .tablet-icon-card.plant.poor,
  .tablet-icon-card.moon,
  .tablet-icon-card.app-entry { padding: 16px; border-radius: 19px; }
  .tablet-card-icon { width: 62px; height: 62px; border-radius: 19px; }
  .tablet-card-kicker { margin-top: 13px; font-size: .65rem; }
  .tablet-icon-card strong { font-size: 1.15rem; }
  .tablet-icon-card small,
  .tablet-icon-card.app-entry small { font-size: .72rem; }
  .tablet-icon-card > button { top: 12px; right: 12px; width: 34px; height: 34px; }
  .tablet-match-heading { align-items: flex-start; }
  .tablet-match-heading button { min-height: 34px; padding: 0 10px; font-size: .7rem; }
  .tablet-matches article { min-height: 98px; }
}

/* Ekran startowy: stan jest ikoną, nie opisem. */
.tablet-start-layout {
  grid-template-columns: minmax(0, 1.48fr) minmax(410px, .92fr);
  gap: 24px;
  align-items: stretch;
}

.tablet-start {
  gap: 26px;
}

.tablet-focus-card,
.tablet-icon-grid {
  min-height: 500px;
}

.tablet-focus-card {
  --focus-pad: clamp(30px, 3.5vw, 50px);
  padding: var(--focus-pad);
}

.tablet-time-weather .tablet-clock .tablet-date {
  margin-top: 18px;
  color: #263c31;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .005em;
}

.weather-mark {
  width: 122px;
  min-width: 122px;
  min-height: 122px;
  gap: 5px;
  color: #4a6155;
  background: rgba(248, 245, 237, .82);
}

.weather-icon {
  width: 50px;
  height: 50px;
}

.weather-icon svg {
  width: 48px;
  height: 48px;
}

.weather-copy strong {
  font-size: 1.32rem;
}

.weather-copy small {
  display: block;
  color: #4f6057;
  font-size: .76rem;
  letter-spacing: .02em;
}

.tablet-event {
  max-width: none;
}

.tablet-quote {
  align-self: stretch;
  max-width: none;
  min-height: 98px;
  width: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: calc(-1 * var(--focus-pad));
  margin-bottom: calc(-1 * var(--focus-pad));
  margin-left: calc(-1 * var(--focus-pad));
  padding: 19px var(--focus-pad) 21px;
  background: rgba(255, 253, 248, .52);
  border-top: 1px solid rgba(128, 104, 82, .16);
  border-left: 0;
  border-radius: 0 0 27px 27px;
}

.tablet-quote p {
  font-size: clamp(1.22rem, 1.75vw, 1.5rem);
}

.tablet-icon-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tablet-icon-card,
.tablet-icon-card.shopping.good,
.tablet-icon-card.shopping.medium,
.tablet-icon-card.shopping.poor,
.tablet-icon-card.plant.good,
.tablet-icon-card.plant.medium,
.tablet-icon-card.plant.poor,
.tablet-icon-card.moon,
.tablet-icon-card.sports,
.tablet-icon-card.app-entry {
  --tile-surface: #f3efe6;
  --tile-ink: #496054;
  position: relative;
  display: grid;
  width: auto;
  min-width: 0;
  min-height: 0;
  grid-column: auto;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: var(--tile-ink);
  font: inherit;
  text-align: center;
  background: var(--tile-surface);
  border: 1px solid color-mix(in srgb, var(--tile-ink) 20%, transparent);
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(63, 69, 62, .055);
  appearance: none;
}

a.tablet-icon-card,
button.tablet-icon-card {
  cursor: pointer;
}

.tablet-icon-card.shopping.good,
.tablet-icon-card.plant.good {
  --tile-surface: #dce8dd;
  --tile-ink: #3f694f;
}

.tablet-icon-card.shopping.medium,
.tablet-icon-card.plant.medium {
  --tile-surface: #eee5be;
  --tile-ink: #8a711d;
}

.tablet-icon-card.shopping.poor,
.tablet-icon-card.plant.poor {
  --tile-surface: #ecd6d1;
  --tile-ink: #9b4f45;
}

.tablet-icon-card.moon {
  --tile-surface: #e6e6df;
  --tile-ink: #425b59;
}

.tablet-icon-card.sports {
  --tile-surface: #e2e7e2;
  --tile-ink: #3f5b4d;
}

.tablet-icon-card.app-entry {
  --tile-surface: #dfe7df;
  --tile-ink: #365847;
  border-color: #bdcdbf;
}

.tablet-state-icon {
  display: grid;
  width: min(76%, 168px);
  height: auto;
  max-height: none;
  aspect-ratio: 1;
  place-items: center;
  color: var(--tile-ink);
}

.tablet-state-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tablet-icon-card:hover .tablet-state-icon {
  transform: scale(1.025);
}

.tablet-icon-card.sports .tablet-state-icon {
  width: min(78%, 154px);
  max-height: none;
  transform: translateY(-7px);
}

.tablet-icon-card.sports:hover .tablet-state-icon {
  transform: translateY(-7px) scale(1.025);
}

.match-glance {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  z-index: 1;
  display: block;
  padding: 5px 7px;
  color: #31483c;
  text-align: center;
  background: color-mix(in srgb, var(--tile-surface) 91%, transparent);
  border-radius: 10px;
  backdrop-filter: blur(3px);
}

.match-glance strong,
.match-glance small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-glance strong {
  font-size: clamp(.65rem, .85vw, .76rem);
  font-weight: 850;
}

.match-glance small {
  margin-top: 2px;
  color: #596a61;
  font-size: clamp(.58rem, .72vw, .68rem);
  font-weight: 700;
}

@media (max-width: 1050px) {
  .tablet-start-layout { grid-template-columns: 1fr; }
  .tablet-icon-grid { min-height: 500px; }
  .tablet-state-icon { width: min(74%, 172px); }
}

@media (max-width: 760px) {
  .tablet-focus-card { --focus-pad: 26px; min-height: 480px; padding: var(--focus-pad); }
  .tablet-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(180px, 1fr));
    min-height: 420px;
  }
  .tablet-state-icon { width: min(76%, 138px); }
  .tablet-matches { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .tablet-focus-card { --focus-pad: 22px; padding: var(--focus-pad); }
  .tablet-time-weather .tablet-clock .tablet-date { margin-top: 13px; font-size: 1.12rem; }
  .weather-mark { width: 82px; min-width: 82px; min-height: 82px; }
  .weather-icon { width: 36px; height: 36px; }
  .weather-icon svg { width: 34px; height: 34px; }
  .weather-copy strong { font-size: 1rem; }
  .weather-copy small { display: none; }
  .tablet-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(150px, 1fr));
    min-height: 330px;
    gap: 12px;
  }
  .tablet-icon-card,
  .tablet-icon-card.shopping.good,
  .tablet-icon-card.shopping.medium,
  .tablet-icon-card.shopping.poor,
  .tablet-icon-card.plant.good,
  .tablet-icon-card.plant.medium,
  .tablet-icon-card.plant.poor,
  .tablet-icon-card.moon,
  .tablet-icon-card.sports,
  .tablet-icon-card.app-entry { padding: 8px; border-radius: 19px; }
  .tablet-state-icon { width: min(76%, 122px); }
}

/* Mecze pozostają osobną, spokojną sekcją pod głównym pulpitem. */
.tablet-match-section {
  gap: 16px;
  padding-top: 2px;
}

.tablet-matches {
  gap: 18px;
}

.tablet-matches article {
  min-height: 110px;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(250, 247, 240, .9);
  box-shadow: 0 7px 18px rgba(63, 69, 62, .04);
}

.tablet-matches article.match-empty {
  background: rgba(246, 243, 236, .72);
}

.tablet-matches .match-sport {
  width: 54px;
  height: 54px;
  border-radius: 17px;
}

.tablet-matches .match-sport svg {
  width: 30px;
  height: 30px;
}

.tablet-matches article.match-empty .match-sport,
.tablet-matches article.match-empty .match-copy {
  opacity: .72;
}

@media (max-width: 760px) {
  .tablet-start,
  .tablet-start-layout { gap: 20px; }
  .tablet-match-section { gap: 13px; }
  .tablet-matches { gap: 13px; }
}

/* Ostateczny układ Japandi: jeden materiał, a stan pokazuje wyłącznie symbol. */
.tablet-start {
  max-width: 1440px;
  gap: 28px;
}

.tablet-start-layout {
  grid-template-columns: minmax(0, 1.38fr) minmax(340px, .82fr);
  gap: 28px;
}

.tablet-focus-card,
.tablet-icon-grid {
  min-height: 500px;
}

.tablet-focus-card {
  --focus-pad: clamp(28px, 3.2vw, 46px);
  padding: var(--focus-pad);
  background:
    radial-gradient(circle at 94% 8%, rgba(255, 255, 255, .38) 0 8rem, transparent 8.1rem),
    linear-gradient(145deg, #eee7dc, #e8ded1);
  border: 1px solid #d3c4b2;
  border-radius: 30px;
  box-shadow: 0 16px 38px rgba(62, 68, 61, .075);
}

.tablet-focus-card::before {
  display: none;
}

.tablet-focus-card::after {
  width: 270px;
  height: 270px;
  right: -175px;
  bottom: -185px;
  background: rgba(119, 94, 67, .045);
  border-color: rgba(112, 88, 63, .1);
}

.tablet-time-weather {
  gap: 24px;
}

.tablet-clock time {
  font-size: clamp(5.9rem, 10vw, 8.25rem);
  line-height: .82;
}

.tablet-time-weather .tablet-clock .tablet-date {
  margin-top: 21px;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.15;
}

.weather-mark {
  width: 116px;
  min-width: 116px;
  min-height: 116px;
  gap: 5px;
  padding: 12px 9px;
  color: #40594c;
  background: rgba(249, 246, 239, .82);
  border-color: #d2c5b4;
}

.weather-icon,
.weather-icon svg {
  width: 43px;
  height: 43px;
}

.weather-copy strong {
  color: #2f463a;
  font-size: 1.35rem;
  font-weight: 650;
}

.weather-copy small {
  margin-top: 4px;
  color: #5a675f;
  font-size: .74rem;
}

.tablet-event {
  margin-top: 34px;
}

.tablet-quote {
  align-self: stretch;
  width: 100%;
  min-height: 72px;
  margin: auto 0 0;
  padding: 14px 20px 15px;
  background: rgba(250, 247, 240, .58);
  border: 1px solid rgba(133, 108, 82, .18);
  border-radius: 17px;
}

.tablet-quote span {
  margin-bottom: 4px;
  font-size: .68rem;
}

.tablet-quote p {
  overflow: hidden;
  font-size: clamp(1.03rem, 1.42vw, 1.28rem);
  line-height: 1.25;
  text-overflow: clip;
  white-space: nowrap;
}

.tablet-icon-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tablet-icon-card,
.tablet-icon-card.shopping.good,
.tablet-icon-card.shopping.medium,
.tablet-icon-card.shopping.poor,
.tablet-icon-card.plant.good,
.tablet-icon-card.plant.medium,
.tablet-icon-card.plant.poor,
.tablet-icon-card.moon,
.tablet-icon-card.app-entry {
  --tile-surface: #f8f5ee;
  --tile-ink: #435b4e;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  color: var(--tile-ink);
  background: var(--tile-surface);
  border: 1px solid #d5cbbd;
  border-radius: 27px;
  box-shadow: 0 9px 24px rgba(62, 68, 61, .055);
}

.tablet-icon-card.shopping.good,
.tablet-icon-card.plant.good {
  --tile-ink: #3f7853;
}

.tablet-icon-card.shopping.medium,
.tablet-icon-card.plant.medium {
  --tile-ink: #a47b1d;
}

.tablet-icon-card.shopping.poor,
.tablet-icon-card.plant.poor {
  --tile-ink: #a64f45;
}

.tablet-icon-card.moon {
  --tile-ink: #4a625a;
}

.tablet-icon-card.app-entry {
  --tile-ink: #365847;
}

.tablet-state-icon {
  display: grid;
  width: min(92%, 168px);
  height: auto;
  aspect-ratio: 1;
  place-items: center;
  color: var(--tile-ink);
  transform: none;
}

.tablet-state-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke-width: 1.65;
}

.tablet-state-icon svg * {
  vector-effect: non-scaling-stroke;
}

.tablet-icon-card:hover .tablet-state-icon {
  transform: scale(1.02);
}

.tablet-match-section {
  gap: 16px;
}

@media (max-width: 860px) {
  .tablet-start-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .tablet-focus-card { min-height: 460px; }
  .tablet-icon-grid { min-height: 470px; }
}

@media (max-width: 760px) {
  .tablet-start { gap: 22px; }
  .tablet-focus-card { --focus-pad: 26px; }
  .tablet-matches { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .tablet-focus-card { --focus-pad: 21px; min-height: 440px; }
  .tablet-clock time { font-size: clamp(4.35rem, 20vw, 5.7rem); }
  .tablet-time-weather .tablet-clock .tablet-date { margin-top: 15px; font-size: 1.03rem; }
  .weather-mark { width: 82px; min-width: 82px; min-height: 82px; padding: 8px; }
  .weather-icon,
  .weather-icon svg { width: 33px; height: 33px; }
  .weather-copy strong { font-size: 1rem; }
  .weather-copy small { display: none; }
  .tablet-quote { min-height: 64px; margin-top: 16px; padding: 11px 14px 12px; }
  .tablet-quote p { font-size: clamp(.91rem, 4vw, 1.04rem); }
  .tablet-icon-grid { grid-template-rows: repeat(2, minmax(150px, 1fr)); min-height: 330px; gap: 12px; }
  .tablet-icon-card,
  .tablet-icon-card.shopping.good,
  .tablet-icon-card.shopping.medium,
  .tablet-icon-card.shopping.poor,
  .tablet-icon-card.plant.good,
  .tablet-icon-card.plant.medium,
  .tablet-icon-card.plant.poor,
  .tablet-icon-card.moon,
  .tablet-icon-card.app-entry { padding: 10px; border-radius: 21px; }
  .tablet-state-icon { width: min(92%, 118px); }
}

/* Lekki rytm ekranu: liniowe cyfry, subtelna pogoda i spokojny materiał Japandi. */
.tablet-start { gap: 30px; }

.tablet-start-layout { gap: 30px; }

.tablet-focus-card {
  background:
    radial-gradient(circle at 91% 10%, rgba(255, 255, 255, .34) 0 7rem, transparent 7.1rem),
    linear-gradient(145deg, #f2eee6, #ebe4da);
  border-color: rgba(126, 107, 84, .2);
  box-shadow: 0 14px 34px rgba(60, 66, 59, .055);
}

.tablet-clock time {
  color: #33483d;
  font-family: "Avenir Next", Avenir, Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(5.35rem, 9vw, 7.55rem);
  font-weight: 300;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  letter-spacing: -.055em;
  line-height: .92;
}

.tablet-time-weather .tablet-clock .tablet-date {
  margin-top: 14px;
  color: #526158;
  font-size: clamp(1.08rem, 1.55vw, 1.3rem);
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1.25;
}

.weather-mark {
  width: auto;
  min-width: 142px;
  min-height: 72px;
  flex-direction: row;
  align-self: flex-start;
  justify-content: flex-start;
  gap: 11px;
  padding: 11px 15px;
  color: #496156;
  background: rgba(250, 248, 243, .54);
  border-color: rgba(119, 102, 80, .2);
  border-radius: 20px;
  box-shadow: none;
}

.weather-mark:hover {
  background: rgba(253, 251, 247, .78);
  transform: none;
}

.weather-icon,
.weather-icon svg {
  width: 34px;
  height: 34px;
}

.weather-icon svg { stroke-width: 1.45; }

.weather-copy {
  max-width: none;
  text-align: left;
}

.weather-copy strong {
  color: #3d5147;
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 450;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
}

.weather-copy small {
  margin-top: 5px;
  color: #66736b;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .025em;
}

.tablet-event {
  margin-top: 30px;
  padding: 15px 17px;
  background: rgba(251, 249, 244, .48);
  border-color: rgba(126, 107, 84, .18);
  border-radius: 16px;
}

.tablet-event > .tablet-event-icon {
  color: #50675a;
  background: rgba(224, 228, 219, .52);
  border-color: rgba(96, 118, 104, .18);
}

.tablet-event small {
  color: #7b6d5d;
  font-weight: 650;
}

.tablet-event strong {
  color: #36473e;
  font-weight: 400;
}

.tablet-event time {
  color: #66736b;
  font-weight: 500;
}

.tablet-quote {
  min-height: 68px;
  padding: 13px 18px 14px;
  background: rgba(252, 250, 246, .38);
  border-color: rgba(126, 107, 84, .15);
  border-radius: 15px;
}

.tablet-quote span {
  color: #7b6d5d;
  font-weight: 650;
}

.tablet-quote p {
  color: #514b44;
  font-weight: 400;
}

.tablet-icon-grid { gap: 22px; }

.tablet-icon-card,
.tablet-icon-card.shopping.good,
.tablet-icon-card.shopping.medium,
.tablet-icon-card.shopping.poor,
.tablet-icon-card.plant.good,
.tablet-icon-card.plant.medium,
.tablet-icon-card.plant.poor,
.tablet-icon-card.moon,
.tablet-icon-card.app-entry {
  --tile-surface: #faf8f3;
  border-color: rgba(118, 105, 87, .2);
  border-radius: 25px;
  box-shadow: 0 8px 22px rgba(60, 66, 59, .04);
}

.tablet-state-icon { width: min(88%, 158px); }

.tablet-state-icon svg { stroke-width: 1.45; }

.tablet-match-heading span { font-weight: 650; }

.tablet-match-heading h2 { font-weight: 400; }

.tablet-match-heading button {
  color: #56675e;
  font-weight: 600;
  background: rgba(250, 248, 243, .4);
  border-color: rgba(118, 105, 87, .2);
}

.tablet-matches article,
.tablet-matches article.match-empty {
  background: rgba(250, 248, 243, .7);
  border-color: rgba(118, 105, 87, .18);
  box-shadow: 0 6px 16px rgba(60, 66, 59, .025);
}

.tablet-matches .match-sport {
  color: #53685c;
  background: rgba(226, 230, 221, .52);
  border-color: rgba(96, 118, 104, .16);
}

.tablet-matches .match-team { font-weight: 650; }

.tablet-matches strong { font-weight: 400; }

.tablet-matches time { font-weight: 500; }

@media (max-width: 520px) {
  .tablet-clock time { font-size: clamp(4.2rem, 19vw, 5.35rem); }
  .tablet-time-weather .tablet-clock .tablet-date { margin-top: 10px; font-size: .98rem; }
  .weather-mark { min-width: 72px; min-height: 72px; padding: 10px; border-radius: 18px; }
  .weather-icon,
  .weather-icon svg { width: 30px; height: 30px; }
  .weather-copy small { display: none; }
  .tablet-icon-grid { gap: 13px; }
  .tablet-state-icon { width: min(88%, 112px); }
}

/* Drobna typografia, wspólna oś treści i spokojne detale informacyjne. */
.tablet-start {
  position: relative;
  isolation: isolate;
}

.tablet-start::before {
  display: none;
}

body {
  background:
    radial-gradient(circle, rgba(142, 166, 148, .085), transparent 68%),
    radial-gradient(circle, rgba(197, 168, 132, .075), transparent 68%),
    var(--bg);
  background-repeat: no-repeat;
  background-position: 82% 7%, 8% 86%, 0 0;
  background-size: 42rem 42rem, 34rem 34rem, auto;
  animation: japandi-page-drift 26s ease-in-out infinite alternate;
}

.tablet-focus-card::after {
  animation: japandi-orbit-drift 20s ease-in-out infinite alternate;
}

.tablet-event small {
  color: #756a5e;
  font-weight: 500;
  letter-spacing: .095em;
}

.tablet-event strong {
  color: #3f4e46;
  font-family: "Avenir Next", Avenir, Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 1.9vw, 1.68rem);
  font-weight: 350;
  letter-spacing: -.018em;
  line-height: 1.2;
}

.tablet-event time {
  color: #657169;
  font-weight: 400;
}

.tablet-quote {
  padding-left: 87px;
}

.tablet-quote span {
  color: #756a5e;
  font-weight: 500;
  letter-spacing: .095em;
}

.tablet-quote p {
  color: #4f5651;
  font-family: "Avenir Next", Avenir, Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.02rem, 1.28vw, 1.16rem);
  font-weight: 400;
  letter-spacing: -.005em;
}

.tablet-icon-card.moon .tablet-state-icon {
  width: min(70%, 126px);
  transform: translateY(-13px);
}

.tablet-icon-card.moon:hover .tablet-state-icon {
  transform: translateY(-12px) scale(1.015);
}

.astro-caption {
  position: absolute;
  right: 12px;
  bottom: 15px;
  left: 12px;
  display: block;
  color: #53665e;
  text-align: center;
}

.astro-caption strong,
.astro-caption small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.astro-caption strong {
  font-family: "Avenir Next", Avenir, Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(.72rem, .88vw, .82rem);
  font-weight: 450;
  letter-spacing: .03em;
}

.astro-caption small {
  margin-top: 3px;
  color: #77827c;
  font-size: clamp(.62rem, .75vw, .7rem);
  font-weight: 400;
}

.tablet-matches .match-sport {
  width: 56px;
  height: 56px;
  color: #50665a;
  background: rgba(229, 231, 224, .48);
  border-color: rgba(91, 111, 98, .16);
  border-radius: 17px;
}

.tablet-matches .match-sport .match-crest-svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.4;
}

.match-opponent {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.match-opponent strong {
  min-width: 0;
  flex: 1;
}

.match-venue {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  color: #5b7064;
  background: rgba(226, 230, 222, .55);
  border: 1px solid rgba(91, 111, 98, .15);
  border-radius: 50%;
}

.match-venue.away {
  color: #6b665d;
  background: rgba(235, 228, 217, .62);
  border-color: rgba(125, 107, 83, .15);
}

.match-venue svg {
  width: 16px;
  height: 16px;
}

.tablet-matches strong {
  color: #45534b;
  font-family: "Avenir Next", Avenir, Inter, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(.94rem, 1.2vw, 1.08rem);
  font-weight: 450;
  letter-spacing: -.01em;
}

.tablet-matches time {
  margin-top: 7px;
  color: #758079;
  font-size: clamp(.75rem, .9vw, .84rem);
  font-weight: 400;
}

@keyframes japandi-page-drift {
  from { background-position: 82% 7%, 8% 86%, 0 0; }
  to { background-position: 78% 11%, 12% 81%, 0 0; }
}

@keyframes japandi-orbit-drift {
  from { transform: translate3d(-5px, 3px, 0) scale(.98); opacity: .72; }
  to { transform: translate3d(8px, -5px, 0) scale(1.03); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .tablet-focus-card::after { animation: none; }
}

@media (max-width: 520px) {
  .tablet-quote { padding-left: 18px; }
  .tablet-icon-card.moon .tablet-state-icon { width: min(66%, 92px); transform: translateY(-12px); }
  .astro-caption { bottom: 10px; }
  .tablet-matches .match-sport { width: 50px; height: 50px; }
  .tablet-matches .match-sport .match-crest-svg { width: 37px; height: 37px; }
}
