:root {
  --bg: #f7f5ef;
  --paper: #fffdf9;
  --ink: #2f2b27;
  --muted: #756e66;
  --line: #ddd7ce;
  --accent: #7b5d46;
  --accent-dark: #5c4333;
  --soft: #eee7dd;
  --success: #e7f2e7;
  --error: #f8e7e4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.page { padding: 40px 0 64px; }
.hero { padding: 26px 0 30px; }
.eyebrow { margin: 0 0 8px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.35rem, 6vw, 4.5rem); margin: 0 0 16px; font-weight: 600; }
h2 { font-size: 2rem; margin: 0; }
h3 { font-size: 1.35rem; }
.lede { max-width: 760px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.import-panel, .personal-panel, .source-tools { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.import-form label, .personal-form > label { display: grid; gap: 8px; font-weight: 700; }
.import-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 10px; }
input[type="url"], input[type="search"], input[name="tags"], input[name="category"], textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); padding: 12px 14px;
}
textarea { resize: vertical; min-height: 120px; }
button { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); padding: 10px 14px; font-weight: 700; }
button.primary { background: var(--accent); color: white; border-color: var(--accent); }
button.primary:hover { background: var(--accent-dark); }
.library-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin: 38px 0 18px; }
.library-head p { margin: 4px 0 0; color: var(--muted); }
.search-form { display: flex; gap: 8px; width: min(440px, 100%); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.recipe-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.recipe-card:hover { transform: translateY(-2px); border-color: #c8bdb0; }
.card-image { aspect-ratio: 4 / 3; position: relative; background: var(--soft); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.image-fallback { height: 100%; display: grid; place-items: center; color: var(--muted); }
.favorite-badge { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: #9d423d; }
.card-body { padding: 16px; }
.source { margin: 0 0 4px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 800; }
.card-body h3 { margin: 0 0 12px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; }
.stars { color: #b57d23; letter-spacing: .03em; }
.muted { color: var(--muted); }
.empty-state { margin-top: 20px; padding: 42px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); text-decoration: none; }
.recipe-hero { display: grid; grid-template-columns: minmax(280px, .8fr) 1.2fr; gap: 36px; align-items: center; }
.recipe-photo { min-height: 340px; border-radius: 20px; overflow: hidden; background: var(--soft); }
.recipe-photo img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.recipe-intro h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.source-line { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.stat-grid div { padding: 12px; border-radius: 12px; background: var(--soft); }
.stat-grid span, .stat-grid strong { display: block; }
.stat-grid span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
.stat-grid strong { margin-top: 3px; font-size: .95rem; }
.personal-panel { margin-top: 34px; }
.panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 20px; }
.personal-form { display: grid; gap: 16px; }
.rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.field-label { font-weight: 700; }
.star-picker { display: inline-flex; flex-direction: row-reverse; }
.star-picker input { position: absolute; opacity: 0; pointer-events: none; }
.star-picker label { font-size: 1.75rem; color: #c8c0b5; cursor: pointer; line-height: 1; }
.star-picker input:checked ~ label, .star-picker label:hover, .star-picker label:hover ~ label { color: #b57d23; }
.made-count { color: var(--muted); font-size: .9rem; }
.check-row { display: inline-flex !important; grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px !important; font-weight: 650 !important; }
.recipe-content { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; margin-top: 42px; }
.recipe-content h2 { margin-bottom: 18px; }
.ingredient-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ingredient-list li { border-bottom: 1px solid var(--line); }
.ingredient-list label { display: flex; gap: 10px; padding: 12px 2px; cursor: pointer; }
.ingredient-list input:checked + span { text-decoration: line-through; color: var(--muted); }
.instruction-list { padding-left: 34px; margin: 0; }
.instruction-list li { padding: 0 0 20px 10px; }
.instruction-list li::marker { color: var(--accent); font-weight: 800; }
.source-tools { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 34px; }
.source-tools h3 { margin: 0 0 5px; }
.source-tools p { margin: 0; color: var(--muted); max-width: 720px; }
.flash-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); }
.flash.success { background: var(--success); }
.flash.error { background: var(--error); }
@media (max-width: 820px) {
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-hero, .recipe-content { grid-template-columns: 1fr; }
  .recipe-photo, .recipe-photo img { min-height: 260px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1120px); }
  .header-row, .library-head, .panel-head, .source-tools { align-items: stretch; flex-direction: column; }
  .header-row { padding: 14px 0; }
  .import-row, .recipe-grid { grid-template-columns: 1fr; }
  .search-form { width: 100%; }
  .page { padding-top: 24px; }
}
@media print {
  .site-header, .back-link, .personal-panel, .source-tools { display: none !important; }
  body { background: white; }
  .shell { width: 100%; }
  .recipe-hero { grid-template-columns: 1fr; }
  .recipe-photo { max-height: 260px; }
  .recipe-content { grid-template-columns: .8fr 1.2fr; gap: 28px; }
}

.library-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.view-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.view-toggle .view-button { border: 0; background: transparent; color: var(--muted); padding: 7px 10px; border-radius: 8px; font-size: .9rem; }
.view-toggle .view-button.active { background: var(--soft); color: var(--ink); }
.recipe-grid.list-view { grid-template-columns: 1fr; gap: 12px; }
.recipe-grid.list-view .recipe-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.recipe-grid.list-view .card-image { aspect-ratio: auto; min-height: 128px; }
.recipe-grid.list-view .card-body { display: flex; flex-direction: column; justify-content: center; }
.recipe-grid.list-view .card-body h3 { font-size: 1.5rem; margin-bottom: 14px; }

@media (max-width: 600px) {
  .library-actions { width: 100%; justify-content: stretch; }
  .view-toggle { flex: 0 0 auto; }
  .library-actions .search-form { flex: 1 1 100%; }
  .recipe-grid.list-view .recipe-card { grid-template-columns: 112px minmax(0, 1fr); }
  .recipe-grid.list-view .card-image { min-height: 112px; }
  .recipe-grid.list-view .card-body { padding: 12px; }
  .recipe-grid.list-view .card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
}

.filter-bar { display: grid; grid-template-columns: minmax(145px, .72fr) minmax(150px, .8fr) minmax(145px, .68fr) minmax(240px, 1.4fr) auto auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.filter-field { display: grid; gap: 6px; min-width: 0; }
.filter-field > span { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filter-field select, .filter-field input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); padding: 10px 12px; }
.reset-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; color: var(--muted); font-weight: 700; }
.reorder-help { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: .9rem; }
#orderStatus { margin-left: 8px; color: var(--accent-dark); font-weight: 800; }
.recipe-card { position: relative; }
.recipe-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.card-category { margin: -4px 0 12px; color: var(--muted); font-size: .84rem; }
.reorder-bar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 7px 5px 10px; border-bottom: 1px solid var(--line); background: var(--soft); }
.drag-handle { cursor: grab; user-select: none; color: var(--muted); font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
.drag-handle:active { cursor: grabbing; }
.reorder-buttons { display: flex; gap: 4px; }
.reorder-buttons button { min-width: 32px; min-height: 30px; padding: 2px 8px; border-radius: 7px; background: var(--paper); }
.reorder-buttons button:disabled { opacity: .35; cursor: default; }
.recipe-card.dragging { opacity: .5; outline: 2px dashed var(--accent); outline-offset: 2px; }
.recipe-grid.list-view .recipe-card { display: block; }
.recipe-grid.list-view .recipe-link { display: grid; grid-template-columns: 180px minmax(0, 1fr); }

@media (max-width: 860px) {
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar .search-field { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar .search-field { grid-column: auto; }
  .filter-bar > button { width: 100%; }
  .recipe-grid.list-view .recipe-link { grid-template-columns: 112px minmax(0, 1fr); }
  .reorder-help { font-size: .84rem; }
}

/* Compact reorder controls: keep each recipe card visually intact */
.reorder-bar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 1px 4px rgba(47, 43, 39, .08);
}
.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  padding: 0;
  border-radius: 7px;
  font-size: 1.05rem;
  line-height: 1;
}
.reorder-buttons { gap: 2px; }
.reorder-buttons button {
  min-width: 30px;
  width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  border-radius: 7px;
}
.recipe-card.dragging { transform: none; }
@media (max-width: 600px) {
  .reorder-bar { top: 7px; right: 7px; }
  .drag-handle, .reorder-buttons button { width: 28px; min-width: 28px; height: 28px; min-height: 28px; }
}


/* Reorder layout v2: controls live inside the card, never above it */
.recipe-card.reorderable .reorder-bar {
  position: static;
  z-index: auto;
  width: 100%;
  min-height: 36px;
  padding: 3px 6px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
  justify-content: center;
}
.recipe-card.reorderable .reorder-buttons { display: flex; gap: 3px; }
.recipe-card.reorderable .drag-handle,
.recipe-card.reorderable .reorder-buttons button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
}
.recipe-grid:not(.list-view) .recipe-card.reorderable {
  display: flex;
  flex-direction: column;
}
.recipe-grid:not(.list-view) .recipe-card.reorderable .recipe-link { order: 1; }
.recipe-grid:not(.list-view) .recipe-card.reorderable .reorder-bar { order: 2; }
.recipe-grid.list-view .recipe-card.reorderable {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: stretch;
}
.recipe-grid.list-view .recipe-card.reorderable .reorder-bar {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  min-width: 44px;
  min-height: 100%;
  padding: 7px 5px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--soft);
}
.recipe-grid.list-view .recipe-card.reorderable .reorder-buttons {
  flex-direction: column;
  gap: 4px;
}
.recipe-grid.list-view .recipe-card.reorderable .recipe-link {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-width: 0;
}
.recipe-grid.list-view .recipe-card.reorderable .drag-handle {
  color: var(--accent-dark);
  font-size: 1rem;
}
@media (max-width: 600px) {
  .recipe-grid.list-view .recipe-card.reorderable { grid-template-columns: 40px minmax(0, 1fr); }
  .recipe-grid.list-view .recipe-card.reorderable .reorder-bar { min-width: 40px; padding: 5px 4px; }
  .recipe-grid.list-view .recipe-card.reorderable .recipe-link { grid-template-columns: 112px minmax(0, 1fr); }
  .recipe-card.reorderable .drag-handle,
  .recipe-card.reorderable .reorder-buttons button { width: 28px; min-width: 28px; height: 28px; min-height: 28px; }
}

/* Category grouping */
.recipe-groups { display: block; }
.category-group + .category-group { margin-top: 38px; }
.category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.category-heading h3 { margin: 0; font-size: 1.7rem; }
.category-heading span { color: var(--muted); font-size: .86rem; }
.category-items { margin: 0; }
@media (max-width: 600px) {
  .category-group + .category-group { margin-top: 30px; }
  .category-heading h3 { font-size: 1.45rem; }
}
.field-help { color: var(--muted); font-size: .82rem; font-weight: 500; line-height: 1.4; }


.card-kicker{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.card-kicker .source{margin:0}
.status-badge{display:inline-flex;align-items:center;width:max-content;padding:.28rem .55rem;border-radius:999px;font-size:.72rem;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.status-made{background:rgba(46,125,82,.12);color:#256b48}
.status-want_to_make{background:rgba(113,93,151,.12);color:#665489}
.detail-status{margin-bottom:.55rem}

/* Mobile recipe library refinement */
.mobile-filter-toggle { display: none; }
@media (max-width: 600px) {
  .shell { width: calc(100% - 28px); }
  .site-header .header-row { min-height: 44px; padding: 0; }
  .site-header .brand { font-size: .93rem; letter-spacing: -.015em; }
  .page { padding: 8px 0 36px; }
  .hero { padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
  .hero .eyebrow { margin-bottom: 5px; font-size: .63rem; letter-spacing: .13em; }
  .hero h1 { max-width: 13ch; margin: 0 0 8px; font-size: 1.82rem; line-height: 1.04; }
  .hero .lede { max-width: 31ch; font-size: .88rem; line-height: 1.38; }
  .library-head { margin: 14px 0 9px; gap: 5px; }
  .library-head h2 { font-size: 1.62rem; }
  .library-head p { margin-top: 1px; font-size: .79rem; }
  .view-toggle { display: none; }
  .mobile-filter-toggle { width:100%; min-height:48px; margin:0 0 12px; padding:9px 12px; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:8px; border:1px solid var(--line); border-radius:13px; background:var(--paper); text-align:left; }
  .mobile-filter-title { font-size:.88rem; font-weight:800; }
  .mobile-filter-summary { max-width:45vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-size:.78rem; font-weight:600; }
  .mobile-filter-chevron { color:var(--muted); font-size:1.05rem; transition:transform .15s ease; }
  .mobile-filter-toggle[aria-expanded="true"] .mobile-filter-chevron { transform:rotate(180deg); }
  body.mobile-filter-ready .filter-bar { display:none; }
  body.mobile-filter-ready .filter-bar.mobile-open { display:grid; }
  .filter-bar { grid-template-columns:1fr; gap:10px; margin:0 0 16px; padding:13px; border:1px solid var(--line); border-radius:14px; background:var(--paper); }
  .filter-bar .search-field { grid-column:auto; }
  .filter-field { gap:4px; }
  .filter-field > span { font-size:.7rem; }
  .filter-field select, .filter-field input { min-height:46px; }
  .filter-bar > button { width:100%; min-height:44px; }
  .filter-bar .reset-link { min-height:38px; justify-content:center; padding:0; }
  .recipe-grid.category-items { display:block; }
  .recipe-grid.category-items .recipe-card { margin-bottom:10px; border-radius:14px; }
  .recipe-grid.category-items .recipe-link { display:grid; grid-template-columns:104px minmax(0,1fr); min-height:104px; }
  .recipe-grid.category-items .card-image { aspect-ratio:auto; min-height:104px; height:100%; }
  .recipe-grid.category-items .card-body { padding:10px 11px; justify-content:center; }
  .card-kicker { align-items:flex-start; gap:6px; }
  .card-kicker .source { min-width:0; font-size:.61rem; line-height:1.2; }
  .status-badge { padding:.2rem .42rem; font-size:.62rem; }
  .recipe-grid.category-items .card-body h3 { margin:4px 0 6px; font-size:1.06rem; line-height:1.08; }
  .card-category { margin:0 0 7px; font-size:.75rem; line-height:1.2; }
  .card-meta { gap:7px; font-size:.75rem; line-height:1.2; }
  .favorite-badge { top:7px; right:7px; width:28px; height:28px; font-size:.8rem; }
  .category-group + .category-group { margin-top:26px; }
  .category-heading { margin-bottom:10px; padding-bottom:6px; }
  .category-heading h3 { font-size:1.4rem; }
  .category-heading span { font-size:.76rem; }
}

/* Public recipe header admin link */
.admin-link { color: var(--muted); text-decoration: none; font-size: .84rem; font-weight: 700; }
.admin-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .site-header .header-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .admin-link { font-size: .78rem; }
}


/* Admin username/password sign-in */
.admin-login-page { min-height: calc(100vh - 66px); display: grid; place-items: start center; }
.admin-login-card { width: min(460px, 100%); margin: 56px auto 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.admin-login-card h1 { margin: 0 0 10px; font-size: 2.3rem; }
.admin-login-form { display: grid; gap: 16px; margin-top: 24px; }
.admin-login-form label { display: grid; gap: 7px; font-weight: 700; }
.admin-login-form input { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; }
.inline-logout { margin: 0; display: inline-flex; }
.nav-button { border: 0; border-radius: 0; padding: 0; background: transparent; color: var(--muted); font-size: .95rem; font-weight: 400; }
.nav-button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .admin-login-page { min-height: 0; display: block; }
  .admin-login-card { margin: 18px auto 0; padding: 20px; }
  .admin-login-card h1 { font-size: 1.85rem; }
}


/* Standardize recipe detail photos to the ID 3 template */
.recipe-photo { height: 340px; min-height: 0; }
.recipe-photo img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
@media (max-width: 820px) {
  .recipe-photo { height: 260px; min-height: 0; }
  .recipe-photo img { height: 100%; min-height: 0; }
}

/* Keep list-view recipe images uniform without affecting grid/detail photos */
.recipe-grid.list-view .recipe-card .recipe-link { align-items: stretch; }
.recipe-grid.list-view .recipe-card .card-image { height: 128px; min-height: 128px; }
.recipe-grid.list-view .recipe-card .card-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) {
  .recipe-grid.list-view .recipe-card .card-image { height: 112px; min-height: 112px; }
}

/* Cristy.dev shared theme */
:root {
  color-scheme: light;
  --bg:#E7ECEF; --paper:#FFFFFF; --surface:#FFFFFF; --surface-2:#F4F7F9;
  --ink:#20364F; --muted:#68747F; --line:rgba(39,76,119,.16);
  --accent:#6096BA; --accent-dark:#274C77; --soft:#F4F7F9;
  --header:rgba(231,236,239,.96); --icy:#A3CEF1;
  --success:#E3F2EA; --error:#F8E7E4;
  --shadow:0 14px 32px rgba(39,76,119,.09),0 3px 10px rgba(39,76,119,.06);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:#101D2C; --paper:#182B43; --surface:#182B43; --surface-2:#203650;
  --ink:#E7ECEF; --muted:#B7C5D1; --line:rgba(163,206,241,.16);
  --accent:#A3CEF1; --accent-dark:#6096BA; --soft:#203650;
  --header:rgba(16,29,44,.96); --success:#193B31; --error:#482B31;
  --shadow:0 16px 34px rgba(0,0,0,.26),0 3px 10px rgba(0,0,0,.18);
}
body { font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Inter,Arial,sans-serif; }
.shell { width:min(1180px,calc(100% - 48px)); }
.page { padding-top:56px; }
.hero { padding-top:8px; }
h1,h2,h3 { font-family:inherit; }
h1 { font-weight:950; letter-spacing:-.055em; line-height:.98; }
h2,h3 { font-weight:850; letter-spacing:-.035em; }
.eyebrow,.source { color:var(--accent); }
.recipe-card,.import-panel,.personal-panel,.source-tools,.admin-login-card { box-shadow:var(--shadow); }
.recipe-card:hover { border-color:rgba(96,150,186,.48); }
.filter-field select,.filter-field input,input[type="url"],input[type="search"],input[name="tags"],input[name="category"],textarea,select {
  background:var(--surface); color:var(--ink);
}
.recipe-admin-footer {
  margin-top:56px;
  padding:28px 0 12px;
  border-top:1px solid var(--line);
  text-align:center;
}
.recipe-admin-link {
  color:var(--muted); text-decoration:none; font-weight:700;
  padding:8px 10px; border-radius:10px;
}
.recipe-admin-link:hover { background:rgba(96,150,186,.16); color:var(--ink); }
@media(max-width:760px) {
  .shell { width:min(100% - 32px,1180px); }
  .page { padding-top:38px; }
}
