/* The Ross Kitchen — site styles */

:root {
  /* Colors, fonts and radii come from themes.css (generated by tools/themes.py). */
  --danger: var(--bad-ink);
  --shadow: 0 1px 2px var(--shade), 0 6px 20px var(--shade);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
/* Nothing may widen the page sideways (e.g. the Chef panel parked off-screen). */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; }

a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--accent-ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Header / footer ---------- */


.site-header { background: var(--paper); }
.bar {
  max-width: 1120px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600;
  color: var(--heading); font-family: var(--brand-font); text-decoration: none; white-space: nowrap;
}
.brand-small { font-style: italic; font-weight: 500; font-size: .85em; }
.bar-links { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
@media (max-width: 480px) { .brand { font-size: 1.2rem; } .bar-links .btn-label { display: none; } }
/* Phones: the header must fit the screen, or the whole page becomes wider than it and
   wobbles sideways. The cookbook name gives way first, then the account name. */
.brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  .bar { gap: 8px; padding: 12px 12px; }
  .bar-links { gap: 6px; }
  .menu-name { display: none; }
  .bar .menu summary { padding: 6px 8px; font-size: 1.15rem; line-height: 1; }
  .bar .menu summary::after { content: "☰"; color: var(--ink); }
}

.site-footer { margin-top: auto; text-align: center; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 18px 16px 24px; }
.site-footer a { color: var(--muted); }

/* ---------- Buttons & forms ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: var(--btn-radius);
  border: 1.5px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font: 700 .95rem var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--tint); filter: none; }
.btn-ghost[aria-pressed="true"] { background: var(--tint-strong); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); margin-left: auto; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: .92rem; color: var(--muted); cursor: pointer; text-decoration: underline; }

input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--field); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 18px; }
label > input, label > select, label > textarea { margin-top: 6px; font-weight: 400; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
label.check input { width: 22px; height: 22px; margin: 0; }
.help { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.error { color: var(--danger); font-weight: 600; }

.panel {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 20px; margin: 24px auto;
}
.panel.narrow { max-width: 440px; }
.editor { max-width: 760px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-preview { width: 220px; border-radius: 10px; margin: 8px 0; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Home ---------- */

.hero {
  display: grid; gap: 20px; align-items: center;
  grid-template-columns: 1fr; padding: 20px 0 8px;
}
.hero-art { width: 100%; max-width: 210px; height: auto; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 760px) {
  .hero { grid-template-columns: 320px 1fr; gap: 44px; padding-top: 32px; }
  .hero-art { max-width: 300px; }
}
.eyebrow {
  display: inline-block; margin: 0 0 6px;
  font: 700 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
}
.hero h1 { margin-bottom: .2em; color: var(--heading); }
.lede { color: var(--muted); font-size: 1.1rem; margin: 0 0 20px; }

.search input {
  min-height: 52px; padding-left: 44px; border-radius: 999px; box-shadow: var(--shadow); border-color: var(--field);
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236f665e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='m14 14 4 4'/%3E%3C/svg%3E") no-repeat 16px 50%;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; text-decoration: none;
  background: var(--tint); color: var(--accent-ink); border: 1px solid var(--tint-strong);
}

.category { margin-top: 44px; scroll-margin-top: 16px; }
.category-title {
  display: flex; align-items: center; gap: 10px; font-size: 1.9rem;
  padding-bottom: 10px; border-bottom: 2px dotted var(--tint-strong);
}
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; } }

.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px var(--shade), 0 12px 28px var(--shade); }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--tint); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.no-photo {
  background-color: var(--tint);
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent) 50%, transparent 50%),
    linear-gradient(color-mix(in srgb, var(--accent) 12%, transparent) 50%, transparent 50%);
  background-size: 22px 22px;
}
.card-body { padding: 12px 14px 14px; }
.card h3 { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; letter-spacing: 0; color: var(--accent-ink); margin: 0 0 4px; }
.card .meta { margin: 0; color: var(--muted); font-size: .85rem; }
.badge {
  position: absolute; top: 10px; left: 10px; background: var(--card); color: var(--ink);
  font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; box-shadow: var(--shadow);
}
.badge-inline { position: static; display: inline-block; margin: 0 0 12px; background: var(--warn-bg); color: var(--warn-ink); }
.empty { text-align: center; color: var(--muted); margin: 48px 0; }

/* ---------- Recipe page ---------- */

body[class*="theme-"] { background: var(--tint); }
body[class*="theme-"] .site-header { background: var(--tint); }

.recipe { margin-top: 20px; }
.recipe-top {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
}
/* The photo carries the rounded corners itself, so menus can open past the card's edge. */
.recipe-top .recipe-photo { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
@media (min-width: 820px) { .recipe-top .recipe-photo { border-radius: var(--radius) 0 0 var(--radius); } }
.recipe-top .recipe-photo.no-photo:only-child { border-radius: var(--radius); }
.recipe-photo { aspect-ratio: 4 / 3; }
.recipe-photo img { width: 100%; height: 100%; object-fit: cover; }
.recipe-head { padding: 22px 20px 24px; display: flex; flex-direction: column; justify-content: center; }
.recipe-head h1 { margin-bottom: 14px; }
@media (min-width: 820px) {
  .recipe-top { grid-template-columns: 1.1fr 1fr; min-height: 380px; }
  .recipe-photo { aspect-ratio: auto; }
  .recipe-head { padding: 36px 40px; border-top: 3px dotted var(--tint-strong); border-bottom: 3px dotted var(--tint-strong); margin: 24px 0; }
}

.stats { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; color: var(--accent-ink); }
.stat-label { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.recipe-body { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 820px) { .recipe-body { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; } }
.recipe-body > section { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; }
@media (min-width: 820px) { .recipe-body > section { padding: 30px 32px; } .ingredients { align-self: start; position: sticky; top: 16px; } }
.recipe-body h2 { position: relative; padding-bottom: 10px; }
.recipe-body h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; border-bottom: 3px dotted var(--accent); }
.recipe-body h3 { color: var(--accent); margin: 18px 0 6px; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }

.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.scaler { display: inline-flex; border: 1.5px solid var(--tint-strong); border-radius: 999px; overflow: hidden; }
.scaler button {
  border: 0; background: transparent; min-width: 44px; min-height: 36px; font: 700 .9rem var(--sans);
  color: var(--accent-ink); cursor: pointer;
}
.scaler button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.checklist { list-style: none; padding: 0; margin: 0 0 6px; }
.checklist li {
  position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--line); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px;
  border: 2px solid var(--tint-strong); border-radius: 6px; background: var(--field);
}
.checklist li.done { color: var(--muted); text-decoration: line-through; }
.checklist li.done::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10.5 3.2 3L15 6.5'/%3E%3C/svg%3E") center/16px no-repeat;
  border-color: var(--accent);
}
.qty { font-weight: 700; }
.scaled .qty { color: var(--accent); }
.hint { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--accent-ink); font-weight: 700; font-size: .95rem;
}

.notes { margin-top: 14px; background: var(--tint); border-radius: 12px; padding: 18px 20px; }
.notes h2 { font-size: 1.25rem; }
.notes p { margin: 8px 0 0; }
.alt-tag { display: inline-block; margin: 4px 0 0; font: 700 .75rem var(--sans); color: var(--info-ink); background: var(--info-bg); border-radius: 999px; padding: 2px 9px; }
.alt-tag-lg { font-size: .82rem; padding: 4px 12px; margin: 0 0 12px; }
.altitude { margin-top: 14px; background: var(--info-bg); border-radius: 12px; padding: 16px 18px; }
.altitude h2 { font-size: 1.2rem; margin-bottom: 2px; }
.altitude h2::after { display: none; }
.altitude-sub { margin: 0 0 6px; font-size: .85rem; color: var(--muted); }
.altitude ul { margin: 0; padding-left: 20px; }
.altitude-card { padding: 10px 12px; margin-top: 8px; }
.altitude-card .alt-tag-lg { margin: 0 0 4px; }
.nutrition { margin-top: 14px; border: 2px solid var(--ink); border-radius: 10px; padding: 12px 16px; max-width: 360px; background: var(--card); }
.nutrition h2 { font-family: var(--sans); font-weight: 800; font-size: 1.35rem; color: var(--ink); margin: 0; padding: 0; }
.nutrition h2::after { display: none; }
.nutrition-per { margin: 0 0 6px; font-size: .88rem; color: var(--muted); border-bottom: 6px solid var(--ink); padding-bottom: 6px; }
.nutrition-cal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1.2rem; border-bottom: 3px solid var(--ink); padding: 2px 0 4px; }
.nutrition-cal strong { font-size: 1.6rem; }
.nutrition dl { margin: 0; }
.nutrition dl div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0; font-size: .93rem; }
.nutrition dt { font-weight: 700; }
.nutrition dl div.sub { padding-left: 16px; }
.nutrition dl div.sub dt { font-weight: 400; }
.nutrition dd { margin: 0; }
.nutrition-note { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.nutrition-stale { margin: 8px 0 0; font-size: .85rem; color: var(--warn-ink); background: var(--warn-bg); border-radius: 6px; padding: 6px 8px; }
.source { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }

/* ---------- Account menu ---------- */

.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--ink);
  padding: 6px 10px; border-radius: 999px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; color: var(--muted); }
.menu[open] summary { background: var(--tint); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 180px;
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
  display: flex; flex-direction: column;
}
.menu-list a, .menu-list .link {
  padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; text-align: left; font-size: .95rem;
}
.menu-list a:hover, .menu-list .link:hover { background: var(--tint); }

/* ---------- Landing, account, admin ---------- */

.share-book { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; }
.share-book .muted { flex: 1 1 220px; }
.book-link { display: inline-block; background: var(--tint); padding: 6px 10px; border-radius: 8px; font-size: .9rem; word-break: break-all; }
span.brand { cursor: default; }

/* ---------- Landing ---------- */

body.wide main { max-width: 1160px; }
.lp-hero { display: grid; gap: 24px; align-items: center; padding: 36px 0 12px; }
@media (min-width: 860px) { .lp-hero { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 56px; } }
.lp-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); color: var(--heading); letter-spacing: -.01em; }
.lp-lede { font-size: 1.18rem; color: var(--muted); max-width: 34em; margin: 0 0 24px; }
.lp-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.lp-hero-art { width: 100%; max-width: 440px; height: auto; margin: 0 auto; display: block; }

.lp-features { display: grid; gap: 22px; margin: 56px 0; }
@media (min-width: 760px) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
.lp-feature { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 22px 22px 26px; position: relative; }
.lp-feature svg { width: 100%; height: auto; display: block; background: var(--paper); border-radius: 12px; margin-bottom: 18px; padding: 8px; }
.lp-feature h2 { font-size: 1.45rem; color: var(--heading); margin: 8px 0 8px; }
.lp-feature p, .lp-share p, .lp-close p { color: var(--muted); margin: 0; }
.lp-new {
  display: inline-block; font: 700 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ok-ink); background: var(--ok-bg); border-radius: 999px; padding: 3px 10px;
}
.lp-soon {
  display: inline-block; font: 700 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--warn-ink); background: var(--warn-bg); border-radius: 999px; padding: 3px 10px;
}

.lp-share {
  display: grid; gap: 24px; align-items: center; background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  padding: 28px; margin: 0 0 56px;
}
@media (min-width: 860px) { .lp-share { grid-template-columns: 1.2fr 1fr; padding: 36px 44px; } }
.lp-share svg { width: 100%; height: auto; }
.lp-share h2, .lp-extras h2, .lp-close h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--heading); }

.lp-extras { margin: 0 0 56px; }
.lp-extras ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lp-extras li { background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); color: var(--muted); font-size: .95rem; border-top: 4px solid var(--tint-strong); }
.lp-extras li:nth-child(6n+1) { border-top-color: color-mix(in srgb, var(--accent) 28%, var(--card)); }
.lp-extras li:nth-child(6n+2) { border-top-color: color-mix(in srgb, var(--accent) 36%, var(--card)); }
.lp-extras li:nth-child(6n+3) { border-top-color: color-mix(in srgb, var(--accent) 44%, var(--card)); }
.lp-extras li:nth-child(6n+4) { border-top-color: color-mix(in srgb, var(--accent) 52%, var(--card)); }
.lp-extras li:nth-child(6n+5) { border-top-color: color-mix(in srgb, var(--accent) 60%, var(--card)); }
.lp-extras li:nth-child(6n+6) { border-top-color: color-mix(in srgb, var(--accent) 68%, var(--card)); }
.lp-extras li strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }

.lp-close { text-align: center; padding: 40px 16px 24px; }
.lp-close p { max-width: 36em; margin: 0 auto 20px; }
.hero-plain { grid-template-columns: 1fr !important; }
.cover-title { font-size: 48pt; margin-top: 3in; text-align: center; }
.success { color: var(--ok-ink); font-weight: 600; }
.cover-preview { aspect-ratio: 3 / 4; width: 160px; }
.password-form { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.editor h2 { font-size: 1.3rem; margin-top: 8px; }

.admin { padding: 24px 0; }
.admin h2 { margin-top: 28px; }
.notice { border-left: 4px solid var(--warn-line); }
.notice h2 { margin-top: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form select { width: auto; min-width: 220px; }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); font-size: .88em; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--tint-strong); color: var(--accent-ink); }
.status { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.status-paid { background: var(--ok-bg); color: var(--ok-ink); }
.status-due { background: var(--bad-bg); color: var(--bad-ink); }
.status-none { background: color-mix(in srgb, var(--muted) 14%, var(--card)); color: var(--muted); }
.status-exempt { background: var(--info-bg); color: var(--info-ink); }
.cook-panel { padding: 0; margin: 14px 0; }
.cook-panel > summary { padding: 16px 20px; cursor: pointer; }
.cook-panel[open] > summary { border-bottom: 1px solid var(--line); }
.cook-panel > form, .cook-grid { padding: 20px; }
.cook-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .cook-grid { grid-template-columns: 3fr 2fr; } }
.cook-grid h3 { margin: 0 0 12px; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 1.05rem; }
.cook-grid form + h3, .cook-grid form + form, .cook-grid h3 + form + h3 { margin-top: 24px; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mini-table th, .mini-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mini-table .note-row td { padding-top: 0; }

/* ---------- Ask the Chef ---------- */

.chat-page { display: grid; gap: 20px; padding: 20px 0; grid-template-columns: 1fr; }
@media (min-width: 900px) { .chat-page { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.chat-main { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 70vh; }
.chat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 20px 22px 12px; border-bottom: 1px solid var(--line); }
.chat-head h1 { font-size: 1.7rem; margin: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; max-height: 64vh; }
.chat-empty { color: var(--muted); }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chat-suggestions button {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px;
  font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer;
}
.chat-suggestions button:hover { background: var(--tint); }
.msg { max-width: 92%; }
.msg-user { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-radius: 16px 16px 4px 16px; padding: 10px 14px; }
.msg-assistant { align-self: flex-start; }
.msg-assistant > .msg-text { background: var(--paper); border-radius: 16px 16px 16px 4px; padding: 10px 14px; }
.msg-error > .msg-text { background: var(--bad-bg); color: var(--bad-ink); }
.msg-text { margin: 0; white-space: pre-wrap; }
.msg-note { margin: 6px 0 0; font-size: .82rem; opacity: .85; }
.msg-assistant .msg-note { color: var(--ok-ink); font-weight: 700; }
.chat-thinking { padding: 0 22px 10px; color: var(--muted); font-size: .92rem; }
.quip { opacity: 0; transition: opacity .25s ease; font-style: italic; }
.quip.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .quip { transition: none; opacity: 1; } .dots i { animation: none; opacity: .6; } }
.dots { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-composer { border-top: 1px solid var(--line); padding: 14px 22px 18px; }
.chat-composer textarea { resize: none; }
.chat-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.chat-spend { margin-left: auto; font-size: .82rem; }
.chat-photo { cursor: pointer; }
.chat-attached { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.chat-attached img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.chat-side { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; }
.chat-side h2 { font-size: 1.3rem; }
.kitchen-list { margin: 10px 0 0; padding-left: 18px; }
.kitchen-list li { margin: 4px 0; }

.proposal { margin-top: 10px; border: 2px solid var(--tint-strong); border-radius: 14px; padding: 14px 16px; background: var(--card); max-width: 560px; }
.proposal h3 { font-family: var(--serif); font-size: 1.2rem; text-transform: none; letter-spacing: 0; color: var(--ink); margin: 2px 0 4px; }
.proposal h4 { margin: 12px 0 4px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.proposal-kind { margin: 0; font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.proposal-delete { border-color: var(--bad-line); }
.proposal-delete .proposal-kind { color: var(--bad-ink); }
.proposal-summary { margin: 8px 0 0; }
.proposal-nutrition { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.proposal-details summary { cursor: pointer; margin-top: 8px; font-weight: 700; color: var(--accent); }
.proposal-list { margin: 4px 0 0; padding-left: 20px; font-size: .93rem; }
.proposal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.status-saved, .status-dismissed { opacity: .92; }
.diff { font-size: .92rem; border-radius: 8px; overflow: hidden; }
.diff-del { background: var(--bad-bg); color: var(--bad-ink); padding: 3px 8px; text-decoration: line-through; }
.diff-add { background: var(--ok-bg); color: var(--ok-ink); padding: 3px 8px; }
.change-row { margin: 0; }
.diff-del-inline { color: var(--bad-ink); text-decoration: line-through; }
.diff-add-inline { color: var(--ok-ink); font-weight: 700; }

/* ---------- Meal plan & shopping list ---------- */

.plan-page, .shopping-page { padding: 20px 0; }
.plan-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.plan-head h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.week-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.plan-template { display: inline-flex; gap: 6px; align-items: center; }
.plan-template select { width: auto; min-width: 200px; padding: 8px 10px; }
.plan-status { font-size: .88rem; }
.plan-tip { margin-top: 18px; }

.shopping-grid { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .shopping-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.shopping-list { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.aisle + .aisle { margin-top: 18px; }
.aisle h2 { font-size: 1.15rem; margin-bottom: 4px; }
.aisle .uses { display: block; color: var(--muted); font-size: .78rem; text-decoration: none; }
.shopping-meals { margin: 0; }
.shopping-meals h2 { font-size: 1.15rem; }
.shopping-meals ul { list-style: none; padding: 0; margin: 0; }
.shopping-meals li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.shopping-meals li:last-child { border-bottom: 0; }

@media print {
  .plan-phone { display: none !important; }
  .plan-table-wrap { display: block !important; }
  .plan-table { font-size: 8pt; gap: 3px; }
  .pt-cell, .week-card { box-shadow: none; border: 1px solid #ccc; }
  .shopping-meals { display: none; }
  .shopping-list { box-shadow: none; padding: 0; columns: 2; }
  .aisle { break-inside: avoid; }
}

/* ---------- Printable cookbook ---------- */

.cookbook-intro { text-align: center; padding: 32px 0; }
.cover-page, .toc { display: none; }
.print-page .book-page { margin-top: 48px; }

@media print {
  @page { size: letter; margin: 0.5in; }
  body, body[class*="theme-"] { background: #fff !important; font-size: 11pt; display: block; }
  .site-header, .site-footer, .no-print, .hint { display: none !important; }
  main { max-width: none; padding: 0; }
  .recipe-top, .recipe-body > section { box-shadow: none; }
  .recipe-top { grid-template-columns: 1fr 1fr; min-height: 0; border-radius: 0; }
  .recipe-photo { aspect-ratio: 4/3; }
  .recipe-photo.no-photo { display: none; }
  .recipe-head { padding: 0 0 0 20px; margin: 0; border: 0; }
  .recipe-head h1 { font-size: 26pt; }
  .recipe-body { grid-template-columns: 2fr 3fr; gap: 16px; margin-top: 10px; }
  .recipe-body > section { padding: 0; position: static; }
  .checklist li { padding: 3px 0 3px 22px; cursor: default; border: 0; }
  .checklist li::before { width: 12px; height: 12px; top: 7px; border-width: 1.5px; border-radius: 3px; }
  .steps li { padding: 0 0 8px 32px; break-inside: avoid; }
  .steps li::before { width: 22px; height: 22px; font-size: 9pt; }
  .notes { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
  .print-page .cover-page { display: block; break-after: page; text-align: center; }
  .print-page .cover-page img { max-height: 9.5in; margin: 0 auto; }
  .print-page .toc { display: block; break-after: page; columns: 2; }
  .print-page .toc h1 { column-span: all; }
  .print-page .toc h2 { font-size: 13pt; margin-top: 12px; }
  .print-page .toc ul { margin: 0; padding-left: 16px; }
  .print-page .book-page { break-before: page; margin-top: 0; }
}

/* ---------- Versions, test stamps, cooking log ---------- */

.stamp {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  margin: 0 0 14px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 0 var(--accent-ink);
}
.stamp-check {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--on-accent) 70%, transparent); font-weight: 800; font-size: 1.2rem;
}
.stamp-text { display: flex; flex-direction: column; line-height: 1.25; }
.stamp-text strong { font: 600 1rem var(--serif); letter-spacing: .01em; }
.stamp-text span { font-size: .8rem; opacity: .9; }
.status-badge {
  align-self: flex-start; margin: 0 0 6px; padding: 4px 12px; border-radius: 999px;
  font: 700 .82rem var(--sans);
}
.status-untested { border: 1.5px dashed var(--accent); color: var(--accent-ink); background: var(--card); }
.status-needs { background: var(--orange-bg); color: var(--orange-ink); border: 1.5px solid var(--orange-line); }
.status-hint { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }

.versions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.version-chip {
  padding: 4px 12px; border-radius: 999px; font: 700 .82rem var(--sans); text-decoration: none;
  background: var(--card); color: var(--accent-ink); border: 1.5px solid var(--tint-strong);
}
.version-chip.v-untested { border-style: dashed; }
.version-chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.main-dot { color: #e0a800; }
.version-chip.active .main-dot { color: var(--on-accent); }

.owner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }

.cook-log { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.cook-log ul { list-style: none; padding: 0; margin: 0; }
.cook-log li { padding: 8px 0 8px 14px; border-left: 3px solid var(--tint-strong); margin-bottom: 6px; font-size: .95rem; }
.cook-log li.log-worked, .cook-log li.log-tweaked { border-left-color: var(--accent); }
.cook-log li.log-failed { border-left-color: var(--orange-line); }
.log-date { color: var(--muted); font-size: .85rem; }
.log-note { color: var(--ink); }

.card-status { display: inline-block; margin: 4px 4px 0 0; font: 700 .72rem var(--sans); border-radius: 999px; padding: 1px 8px; }
.card-status.tested { background: var(--ok-bg); color: var(--ok-ink); }
.card-status.untested { border: 1px dashed var(--muted); color: var(--muted); }
.card-status.needs { background: var(--orange-bg); color: var(--orange-ink); }
.card-status.versions { background: var(--tint); color: var(--accent-ink); }

dialog.made-it {
  border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px;
  width: min(460px, calc(100vw - 32px)); background: var(--card); color: var(--ink);
}
dialog.made-it::backdrop { background: var(--backdrop); }
.choice { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin-bottom: 12px; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; }

/* ---------- In-place editor ---------- */

.is-editing .recipe { padding-bottom: 90px; }
.recipe-top.editing .recipe-photo { position: relative; min-height: 220px; background: var(--tint-strong); }
.recipe-top.editing .recipe-photo.no-photo { display: grid; place-items: center; }
.photo-change { position: absolute; left: 14px; bottom: 14px; }
.recipe-photo.no-photo .photo-change { position: static; }
.edit-label { display: block; font-size: .8rem; color: var(--muted); font-weight: 700; }
.edit-category { width: auto; align-self: flex-start; margin-bottom: 10px; font-size: .9rem; padding: 6px 10px; }
.edit-title { font: 600 1.9rem/1.2 var(--serif); color: var(--accent-ink); resize: none; overflow: hidden; margin-bottom: 14px; }
.edit-stats { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 0 10px; }
.edit-stats label:nth-child(n+3) { grid-column: span 3; }
@media (min-width: 560px) { .edit-stats { grid-template-columns: .8fr 1.2fr 1.4fr 1.4fr; } .edit-stats label:nth-child(n+3) { grid-column: auto; } }
.serving-edit { font: inherit; color: inherit; background: none; border: 0; border-bottom: 1.5px dashed var(--line); padding: 0 0 1px; cursor: pointer; }
.serving-edit:hover, .serving-edit:focus-visible { border-bottom-color: var(--accent); }
.serving-input { font: inherit; font-weight: 700; width: 11em; max-width: 100%; padding: 2px 8px; border: 1.5px solid var(--accent); border-radius: 8px; background: var(--field); color: var(--ink); }
@media print { .serving-edit { border: 0; } }
.edit-stats label, .recipe-head.editing label { margin-bottom: 12px; }
.recipe-top.editing label { margin-bottom: 12px; }
.edit-version input { font-weight: 700; }

.line-editor { list-style: none; padding: 0; margin: 0 0 8px; }
.line-row { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px; }
.line-row input, .line-row textarea { flex: 1; padding: 8px 10px; }
.line-row textarea { resize: none; overflow: hidden; min-height: 42px; }
.line-row.heading input, .line-row.heading textarea { font-weight: 800; color: var(--accent-ink); background: var(--tint); }
.drag {
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  color: var(--muted); padding: 10px 8px; line-height: 1; font-size: 1.15rem; min-width: 34px; text-align: center; border-radius: 8px;
}
.drag:active { cursor: grabbing; background: var(--tint-strong); color: var(--accent-ink); }
.line-row.dragging { opacity: 1; background: var(--tint); border-radius: 10px; box-shadow: 0 4px 14px var(--shade); position: relative; z-index: 2; }
body.is-dragging { user-select: none; -webkit-user-select: none; }
.line-remove { background: none; border: 0; color: var(--muted); font-size: 1rem; padding: 10px 6px; cursor: pointer; }
.line-remove:hover { color: var(--danger); }
.instructions .line-editor { counter-reset: step; }
.instructions .line-row:not(.heading)::before {
  counter-increment: step; content: counter(step); flex: none; align-self: center;
  width: 24px; text-align: center; font-weight: 800; color: var(--accent);
}
.add-line { display: block; margin: 4px 0 8px; color: var(--accent); text-decoration: none; font-weight: 700; }
.edit-notes-label { margin-top: 20px; }

.edit-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px var(--shade);
}
.edit-msg { flex: 1; color: var(--muted); font-size: .9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Ask the Chef panel (every page, signed in) ---------- */

.chef-fab {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 700 .95rem var(--sans); cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.chef-fab span[aria-hidden] { font-size: 1.3rem; line-height: 1; }
.chef-news .chef-fab::after {
  content: ""; position: absolute; top: 4px; right: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: #e0453a; border: 2px solid var(--card);
}
.is-editing .chef-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
.chef-open .chef-fab { display: none; }
@media (max-width: 520px) { .chef-fab-label { display: none; } .chef-fab { padding: 12px; } }

.chef-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: var(--card); box-shadow: -8px 0 30px rgba(0, 0, 0, .15);
  transform: translateX(105%); transition: transform .22s ease; visibility: hidden;
}
.chef-open .chef-panel { transform: none; visibility: visible; }
.chef-panel-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.chef-panel-head > div { flex: 1; min-width: 0; }
.chef-panel-head .eyebrow { margin: 0; }
.chef-about { margin: 2px 0 0; font-weight: 700; color: var(--accent-ink); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chef-close { background: none; border: 0; font-size: 1.2rem; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.chef-panel .chat-log { max-height: none; padding: 14px 16px; }
.chef-panel .chat-thinking { padding: 0 16px 8px; }
.chef-panel .chat-composer { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.chef-panel .proposal { padding: 12px 14px; }
.chef-suggest { margin: 0 0 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.chef-suggest button { white-space: nowrap; flex: none; }
.chef-suggest:empty { display: none; }
@media (min-width: 900px) { .chef-open main, .chef-open .site-footer { margin-right: 440px; } }
@media (max-width: 899px) { .chef-open { overflow: hidden; } }
.msg-about { display: block; font-size: .75rem; font-weight: 700; margin-bottom: 4px; opacity: .85; text-decoration: none; }
.msg-user .msg-about { color: var(--on-accent); }
.copy-hint { font-size: .85rem; }
.copy-signin { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Quick meals ---------- */

.quick-sub { margin: -6px 0 14px; font-size: .92rem; }
.quick-list { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.quick-meal { background: var(--card); border: 1.5px solid var(--tint-strong); border-radius: 18px; }
.quick-meal summary { list-style: none; cursor: pointer; padding: 8px 16px; font-weight: 700; color: var(--accent-ink); }
.quick-meal summary::-webkit-details-marker { display: none; }
.quick-meal[open] { border-color: var(--accent); min-width: 220px; }
.quick-meal[open] summary { border-bottom: 1px solid var(--tint-strong); }
.quick-body { padding: 8px 16px 12px; font-size: .92rem; }
.quick-body ul { margin: 0 0 8px; padding-left: 18px; }
.quick-add { padding: 8px 16px; border: 1.5px dashed var(--tint-strong); border-radius: 18px; text-decoration: none; font-weight: 700; color: var(--muted); }
.chip-quick { background: color-mix(in srgb, var(--quick) 14%, var(--card)); color: color-mix(in srgb, var(--quick) 75%, var(--ink)); }
.plan-quick { font-style: normal; }
.quick-bolt { margin-right: 4px; }
.quick-print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.quick-print-grid h2 { font-size: 1.1rem; margin: 12px 0 4px; }
.quick-print-grid ul { margin: 0; padding-left: 18px; font-size: .92rem; }

/* ---------- Recipe groups ---------- */

.groups-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; }
.groups-label { font: 700 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.group-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--tint-strong); color: var(--accent-ink);
  font: 700 .9rem var(--sans); text-decoration: none; cursor: pointer;
}
.group-chip span { font-weight: 600; color: var(--muted); font-size: .8rem; }
.group-new { border-style: dashed; color: var(--muted); background: transparent; }
.group-head { padding: 28px 0 8px; }
.group-head h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 8px; }
.group-head .actions { margin-top: 12px; align-items: center; }
.group-hint { font-size: .88rem; margin-top: 10px; }
.card-cat { margin: 0 0 2px; font: 700 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.crumb { display: inline-block; margin: 0 0 6px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.group-picker { width: min(520px, calc(100vw - 24px)); }
.group-picker input[type=search] { margin: 4px 0 10px; }
.picker-list { max-height: 55vh; overflow-y: auto; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; }
.picker-list h3 { margin: 14px 0 4px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.picker-row { margin: 0; padding: 7px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.picker-row input { width: 20px; height: 20px; }

/* ---------- Header navigation ----------
   Computers: My Cookbook / Meal Plan on the left, Ask the Chef / New Recipe / account on
   the right. Phones and small tablets: those two live in the ☰ menu instead. */
.bar-nav { display: none; gap: 8px; margin-right: auto; margin-left: 10px; }
.bar-nav .is-active { background: var(--tint-strong); }
@media (min-width: 900px) {
  .bar-nav { display: flex; }
  .menu-list .menu-phone { display: none; }
}

/* Recipe page Share menu: a normal button that opens a small list. */
.share-menu summary.btn {
  padding: 0 18px; font-size: .95rem; color: var(--on-accent); max-width: none; background: var(--accent);
}
.share-menu summary.btn::after { content: " ▾"; color: var(--on-accent); opacity: .8; }
.share-menu[open] summary.btn { background: var(--accent); filter: brightness(1.07); }
.share-menu .menu-list { left: 0; right: auto; z-index: 30; }

/* ---------- Account: categories and meals ---------- */

.settings-block .setting-row {
  background: var(--tint); border: 1.5px solid var(--tint-strong); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.setting-top { display: flex; align-items: center; gap: 8px; }
.setting-top input { flex: 1; min-width: 0; font-weight: 700; color: var(--accent-ink); }
.icon-select { width: 64px; flex: none; padding: 8px 6px; font-size: 1.1rem; }
.row-tools { display: flex; gap: 2px; flex: none; }
.icon-btn { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; }
.icon-btn:hover:not(:disabled) { background: var(--card); color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-danger:hover:not(:disabled) { color: var(--danger); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2.5px var(--ink); }
.setting-note { margin: 8px 0 0; font-size: .82rem; color: var(--muted); }
.setting-row.removing { background: var(--orange-bg); border-color: var(--orange-line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .92rem; }
.setting-row.removing select { width: auto; }
.meal-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.settings-block .btn-ghost { margin-bottom: 14px; }
.empty-cat { margin: -4px 0 8px; }
.line-move { display: flex; flex-direction: column; flex: none; align-self: center; }
.line-move button { border: 0; background: none; color: var(--muted); font-size: 1rem; line-height: 1; padding: 4px 8px; cursor: pointer; border-radius: 4px; }
.line-move button:hover { background: var(--tint); color: var(--ink); }
.line-row:first-child .line-move button:first-child, .line-row:last-child .line-move button:last-child { visibility: hidden; }

/* Ask the Chef: quick "Add a recipe" buttons above the message box. */
.chat-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.chat-quick-label { font: 700 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.chat-quick-btn { border: 1.5px solid var(--tint-strong); background: var(--card); color: var(--accent-ink); border-radius: 999px;
  padding: 5px 12px; font: 700 .85rem var(--sans); cursor: pointer; }
.chat-quick-btn:hover { background: var(--tint); }
.chat-link-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.chat-link-row input { flex: 1; min-width: 0; }

/* ---------- Account: Look ---------- */

.theme-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.theme-pick {
  display: grid; gap: 4px; text-align: left; padding: 10px; border-radius: 12px; cursor: pointer;
  background: var(--card); border: 2px solid var(--line); color: var(--ink); font: inherit;
}
.theme-pick.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--tint-strong); }
.theme-pick strong { font-size: .98rem; }
.theme-feel { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.theme-sample { display: grid; gap: 2px; border-radius: 8px; overflow: hidden; padding: 0 10px 8px; border: 1px solid var(--line); margin-bottom: 4px; }
.theme-sample-strip { height: 6px; margin: 0 -10px 6px; background: var(--sample); }
.theme-sample-title { font-size: 1.05rem; font-weight: 700; color: #2f2a26; }
.theme-sample-body { font-size: .8rem; color: #6f665e; }
.theme-sample-dots { display: flex; gap: 4px; margin-top: 2px; }
.theme-sample-dots i { width: 12px; height: 12px; border-radius: 50%; }
.theme-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.theme-colors-label { font-weight: 700; font-size: .95rem; }
.theme-color-name { color: var(--muted); font-size: .9rem; }
.mode-note { font-size: .85rem; margin-top: 12px; }

/* Menu: light / dark / auto */
.menu-mode { display: flex; gap: 2px; padding: 6px; margin-top: 4px; border-top: 1px solid var(--line); }
.menu-mode button { flex: 1; border: 0; background: transparent; color: var(--muted); font: 700 .8rem var(--sans); padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.menu-mode button[aria-pressed="true"] { background: var(--tint-strong); color: var(--accent-ink); }

/* ---------- Welcome tour ---------- */

.tour-shade { position: fixed; inset: 0; z-index: 90; background: var(--backdrop); }
.tour-spot {
  position: fixed; z-index: 90; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px var(--backdrop); transition: all .25s ease;
}
.tour-card {
  position: fixed; z-index: 91; width: min(420px, calc(100vw - 20px)); max-height: calc(100vh - 20px); overflow-y: auto;
  background: var(--card); color: var(--ink); border-radius: 16px; box-shadow: 0 12px 40px var(--shade); padding: 18px 20px 16px;
}
.tour-card.tour-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.tour-card.tour-sheet { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); top: auto; width: auto; max-height: 70vh; }
.tour-card h2 { font-size: 1.35rem; margin: 2px 0 6px; }
.tour-count { margin: 0; font: 700 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tour-text { margin: 0 0 12px; font-size: .98rem; }
.tour-bar { display: flex; align-items: center; gap: 8px; }
.tour-bar .link { margin-right: auto; }
.tour-kitchen { display: grid; gap: 8px; margin-bottom: 14px; }
.tour-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-examples .chat-quick-btn { font-size: .78rem; padding: 4px 10px; }
.tour-saved { margin: 0; font-size: .88rem; color: var(--ok-ink); font-weight: 600; }
.lock { font-size: .8em; }

/* Starter covers (views/cover.html) until the cook uploads a cover picture. */
.autocover { display: block; width: 100%; height: auto; }
.hero-autocover { aspect-ratio: 600 / 700; overflow: hidden; }
.autocover-preview { display: block; width: 160px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); margin: 8px 0; }
.print-autocover { width: 70%; max-width: 480px; margin: 0 auto; }

/* ---------- Cookbook page: tiles or list ---------- */

.view-bar { display: flex; justify-content: flex-end; gap: 2px; margin: 8px 0 -8px; }
.view-bar button {
  border: 1.5px solid var(--line); background: var(--card); color: var(--muted); font: 700 .85rem var(--sans);
  padding: 6px 14px; cursor: pointer;
}
.view-bar button:first-child { border-radius: 999px 0 0 999px; }
.view-bar button:last-child { border-radius: 0 999px 999px 0; }
.view-bar button[aria-pressed="true"] { background: var(--tint-strong); color: var(--accent-ink); border-color: var(--tint-strong); }
/* List: just the titles, in columns, under each category. */
body.list-view .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; }
body.list-view .cards a.card {
  background: none; box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; transform: none; overflow: visible;
}
body.list-view .cards a.card:hover { box-shadow: none; transform: none; }
body.list-view .cards a.card:hover h3 { text-decoration: underline; }
body.list-view .card-photo, body.list-view .card-body > :not(h3) { display: none; }
body.list-view .card-body { padding: 10px 2px; }
body.list-view .card h3 { font-size: 1.05rem; margin: 0; }

/* ---------- Photo adjuster (pb_public/js/photo-edit.js) ---------- */

dialog.photo-edit { width: min(560px, calc(100vw - 20px)); }
.photo-edit-hint { margin: 0 0 10px; font-size: .9rem; }
.photo-frame { width: 100%; max-height: 60vh; margin: 0 auto 12px; border-radius: 10px; overflow: hidden; background: var(--tint); }
.photo-frame canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.photo-frame canvas:active { cursor: grabbing; }
.photo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.photo-zoom { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 160px; margin: 0; font-size: .85rem; }
.photo-zoom input { flex: 1; padding: 0; border: 0; background: transparent; accent-color: var(--accent); }
.photo-adjust { position: absolute; left: 150px; bottom: 14px; background: var(--card); }
.recipe-photo.no-photo .photo-adjust { position: static; }
.section-head .scaler.units { margin-left: auto; }

/* ---------- Shared with you ---------- */

.shared-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.shared-book { display: grid; gap: 4px; justify-items: start; }
.shared-book a { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.shared-cover { display: block; width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.shared-groups { display: grid; gap: 8px; }
.shared-group { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); }
.shared-group a { text-decoration: none; color: var(--ink); }
.shared-recipe { display: grid; gap: 4px; justify-items: start; align-content: start; }
.shared-recipe .card { width: 100%; }

/* ---------- Meal plan: a day at a time (phones) and the week as a table (computers) ---------- */

.plan-table-wrap { display: none; }
@media (min-width: 900px) {
  .plan-phone { display: none; }
  .plan-table-wrap { display: block; }
}
.plan-more summary.btn { padding: 0 18px; font-size: .95rem; color: var(--accent); max-width: none; }
.plan-more summary.btn::after { content: " ▾"; color: var(--accent); }
.plan-more[open] summary.btn { background: var(--tint); }
.plan-more .menu-list { left: 0; right: auto; z-index: 30; min-width: 230px; }

/* Day strip + one day */
.day-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 14px; }
.day-strip button {
  display: grid; gap: 1px; justify-items: center; padding: 6px 0 7px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--muted); font: 700 .75rem var(--sans);
}
.day-strip button b { font-size: 1.05rem; color: var(--ink); }
.day-strip button i { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.day-strip button.has i { background: var(--ok-ink); }
.day-strip button.is-today { border-color: var(--accent); }
.day-strip button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day-strip button[aria-pressed="true"] b { color: var(--on-accent); }
.day-strip button[aria-pressed="true"].has i { background: var(--on-accent); }
.day-title { font-size: 1.5rem; margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-goal, .meal-card, .week-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; margin-bottom: 10px; }
.plan-goal { display: grid; gap: 7px; }
.goal-row { display: grid; grid-template-columns: 68px 1fr auto; gap: 10px; align-items: center; font-size: .86rem; font-weight: 700; }
.goal-num { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.goal-bar { height: 9px; border-radius: 999px; background: var(--tint-strong); overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.goal-bar i.ok { background: var(--ok-ink); }
.goal-bar i.over { background: var(--orange-ink); }
.goal-note { margin: 0; font-size: .82rem; color: var(--muted); }
.meal-card { display: grid; gap: 6px; }
.meal-card h3 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; font: 800 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.meal-card h3 em { font-style: normal; letter-spacing: 0; text-transform: none; font-weight: 600; font-size: .82rem; }
.meal-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  border: 0; background: var(--paper); border-radius: 12px; padding: 8px 10px; color: var(--ink); font: inherit;
}
.meal-thumb { width: 44px; height: 44px; border-radius: 10px; flex: none; overflow: hidden; background: var(--tint-strong); display: grid; place-items: center; font-size: 1.2rem; }
.meal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.meal-thumb.is-quick { background: color-mix(in srgb, var(--quick) 16%, var(--card)); }
.meal-thumb.is-note { background: transparent; border: 1.5px dashed var(--line); }
.meal-text { display: grid; min-width: 0; flex: 1; }
.meal-text b { font-weight: 700; line-height: 1.25; }
.meal-text small { color: var(--muted); font-size: .8rem; }
.meal-row.is-note .meal-text b { font-weight: 600; font-style: italic; color: var(--muted); }
.meal-more { color: var(--muted); font-size: 1.2rem; padding: 0 4px; }
.meal-add { border: 1.5px dashed var(--tint-strong); background: transparent; border-radius: 12px; padding: 9px; color: var(--accent); font: 700 .9rem var(--sans); cursor: pointer; }
.meal-add:hover, .pt-add:hover { background: var(--tint); }

/* Week table */
.plan-table { display: grid; grid-template-columns: 84px repeat(var(--days, 7), minmax(0, 1fr)); gap: 6px; }
.pt-head { text-align: center; padding: 6px 2px; border-radius: 10px; font-size: .88rem; color: var(--muted); }
.pt-head b { color: var(--ink); font-family: var(--serif); font-size: 1rem; }
.pt-head.is-today { background: var(--accent); color: var(--on-accent); }
.pt-head.is-today b { color: var(--on-accent); }
.pt-label { align-self: center; font: 800 .68rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pt-cell { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-height: 76px; display: flex; flex-direction: column; gap: 4px; }
.pt-item { display: grid; gap: 1px; text-align: left; border: 0; background: var(--paper); border-radius: 8px; padding: 5px 7px; cursor: pointer; color: var(--ink); font: 700 .84rem/1.25 var(--sans); }
.pt-item:hover { background: var(--tint); }
.pt-item small { font-weight: 600; color: var(--muted); font-size: .74rem; }
.pt-item.is-note { font-weight: 600; font-style: italic; color: var(--muted); }
.pt-add { margin-top: auto; border: 0; background: transparent; color: var(--accent); font: 700 1rem var(--sans); border-radius: 8px; cursor: pointer; padding: 2px; opacity: .55; }
.pt-cell:hover .pt-add, .pt-add:focus-visible { opacity: 1; }
.pt-total { display: grid; gap: 1px; align-content: start; text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 4px; }
.pt-total .ok { color: var(--ok-ink); }
.pt-total .over { color: var(--orange-ink); }
.pt-total small { font-weight: 600; font-size: .72rem; }

/* Week summary */
.week-card { margin-top: 16px; display: grid; gap: 10px; }
.week-head h2 { margin: 0 0 2px; font-size: 1.2rem; }
.week-head p { margin: 0; font-weight: 700; font-size: .92rem; }
.week-chart { max-width: 420px; }
.week-bars { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 90px; margin-top: 22px; }
.week-bars i { display: block; border-radius: 5px 5px 0 0; background: var(--accent); }
.week-bars i.ok { background: var(--ok-ink); }
.week-bars i.over { background: var(--orange-ink); }
.week-bars i.none { background: var(--tint-strong); }
.week-goal { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--muted); }
.week-goal span { position: absolute; right: 0; bottom: 3px; line-height: 1; font-size: .7rem; color: var(--muted); font-weight: 700; }
.week-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); margin-top: 3px; }

/* Picker and item dialogs */
dialog.plan-picker { width: min(560px, 100vw); padding: 18px 16px 14px; }
dialog.plan-picker h2, dialog.plan-item h2, dialog.plan-goals h2 { font-size: 1.3rem; margin: 0 0 10px; }
.picker-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 8px; }
.picker-tabs button { flex: none; border: 1.5px solid var(--line); background: var(--card); color: var(--muted); border-radius: 999px; padding: 5px 12px; font: 700 .84rem var(--sans); cursor: pointer; }
.picker-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
dialog.plan-picker .picker-list { max-height: 44vh; padding: 0 4px; }
.picker-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.picker-row:last-child { border-bottom: 0; }
.picker-row .btn { flex: none; }
.picker-row .btn.is-added { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-bg); }
.picker-version { width: auto; max-width: 120px; padding: 6px 8px; font-size: .82rem; flex: none; }
.picker-note { display: flex; gap: 8px; margin-bottom: 12px; }
.picker-note input { flex: 1; min-width: 0; }
.plan-item-link { margin: -4px 0 12px; }
.fit { display: block; font-weight: 700; }
.fit-short { color: var(--warn-ink); }
.plan-fit { margin: -2px 0 14px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.plan-fit .btn { margin-left: 4px; }
.who-row { grid-template-columns: 1fr 1fr; }
.who-eats { border: 0; padding: 0; margin: 0 0 6px; }
.who-eats legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.who-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.who-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px 5px 8px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; font-size: .9rem; cursor: pointer; }
.who-chip input { width: 18px; height: 18px; margin: 0; }
.who-chip:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.people-list { display: grid; gap: 6px; margin-bottom: 8px; }
.person-row { display: grid; grid-template-columns: 1fr 9.5em auto; gap: 8px; align-items: center; }
.person-row input, .person-row select { margin: 0; }
.person-remove { font-size: .85rem; }
dialog.plan-goals h3 { font-size: 1.05rem; margin: 6px 0 4px; }
dialog.plan-goals h3 + .muted { margin: 0 0 10px; font-size: .88rem; }
@media (max-width: 640px) {
  /* A sheet that rises from the bottom of the screen. */
  dialog.plan-picker, dialog.plan-item, dialog.plan-goals {
    margin: auto 0 0; max-width: 100vw; width: 100vw; border-radius: 20px 20px 0 0; max-height: 88vh;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* Pantry */
.pantry-intro ul { margin: 0 0 12px; padding-left: 20px; }
.pantry-intro li { margin-bottom: 6px; }
.pantry-next { margin-bottom: 22px; }
.pantry-when { margin: 0 0 4px; font-size: 1.05rem; }
.pantry-next p { margin: 0 0 8px; }
.pantry-actions { display: flex; align-items: center; gap: 12px; margin: 12px 0 0 !important; }
.pantry-h { font-size: 1.35rem; margin: 26px 0 4px; }
.pantry-h .muted { font: 600 .85rem var(--sans); }
.pantry-help { margin: 0 0 12px; }
.pantry-groups { display: grid; gap: 14px; }
.pantry-groups h3 { font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.pantry-list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 14px; box-shadow: var(--shade); }
.pantry-list:empty { display: none; }
[data-new-items] { margin-top: 14px; }
.pantry-item { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pantry-item:last-child { border-bottom: 0; }
.pantry-item.flash { outline: 2px solid var(--accent); outline-offset: -2px; }
.pantry-name { flex: 1 1 220px; min-width: 0; }
.pantry-name b { font-weight: 700; }
.pantry-amount { color: var(--accent-ink); font-weight: 600; font-size: .9rem; }
.pantry-name .uses { display: block; color: var(--muted); font-size: .8rem; }
.pantry-states { display: inline-flex; flex: none; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--field); }
.pantry-states button { white-space: nowrap; border: 0; border-right: 1.5px solid var(--line); background: none; color: var(--muted); font: 700 .82rem var(--sans); padding: 7px 12px; cursor: pointer; }
.pantry-states button:last-child { border-right: 0; }
.pantry-states button[aria-pressed="true"][data-set="have"] { background: var(--ok-bg); color: var(--ok-ink); }
.pantry-states button[aria-pressed="true"][data-set="low"] { background: var(--warn-bg); color: var(--warn-ink); }
.pantry-states button[aria-pressed="true"][data-set="out"] { background: var(--bad-bg); color: var(--bad-ink); }
.pantry-remove { font-weight: 400 !important; }
.pantry-add { display: flex; gap: 8px; margin: 0 0 14px; max-width: 460px; }
.pantry-add input { margin: 0; flex: 1; }
.can-make { margin: 0 0 14px; padding-left: 20px; columns: 2 260px; }
.can-make li { margin-bottom: 4px; break-inside: avoid; }
.pantry-settings { margin-top: 30px; }
.pantry-settings form { margin-top: 14px; }
.pantry-off { margin: 16px 0 0; }
.covered summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.covered-list { list-style: none; margin: 8px 0; padding: 0; color: var(--muted); }
.covered-list li { padding: 3px 0; }
@media (max-width: 520px) { .pantry-states { width: 100%; } .pantry-states button { flex: 1; } .pantry-states .pantry-remove { flex: none; } }

/* Shopping mode: only the list, easy to tap while walking the store */
.shop-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 0; margin-bottom: 8px; background: var(--paper); border-bottom: 1px solid var(--line); }
.shop-left { flex: 1; font-size: 1.1rem; color: var(--heading); }
.shop-offline { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-size: .9rem; }
.aisle.all-done > h2 { color: var(--muted); }
.aisle.all-done > h2::after { content: " ✓"; }
body.shopping-mode .bar, body.shopping-mode .site-footer, body.shopping-mode .chef-fab, body.shopping-mode .plan-head .week-nav,
body.shopping-mode .plan-tools, body.shopping-mode .shopping-page > p.muted, body.shopping-mode .shopping-meals, body.shopping-mode .covered { display: none; }
body.shopping-mode .plan-head { margin-bottom: 4px; }
body.shopping-mode .plan-head h1 { font-size: 1.5rem; }
body.shopping-mode .shopping-grid { grid-template-columns: 1fr; }
body.shopping-mode .checklist { display: flex; flex-direction: column; }
body.shopping-mode .checklist li { padding: 15px 0 15px 44px; font-size: 1.12rem; font-weight: 600; }
body.shopping-mode .checklist li::before { width: 28px; height: 28px; top: 14px; border-radius: 8px; }
body.shopping-mode .checklist li.done { order: 1; font-weight: 400; }
body.shopping-mode .checklist li.done::before { background-size: 20px; }
body.shopping-mode .aisle .uses { font-weight: 400; font-size: .82rem; }
body.shopping-mode .aisle h2 { position: sticky; top: 52px; z-index: 2; background: var(--card); padding: 6px 0; margin: 0; }
