/* Kura redesign mockup template for Codex
   Path: public/Design/styles.css
   Static reference only. No PHP logic.
*/

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, .09);
  --primary: #1f73ff;
  --primary-dark: #145fd8;
  --primary-soft: #eaf2ff;
  --green: #16a34a;
  --red: #ef4444;
  --violet: #7c3aed;
  --shadow: 0 16px 45px rgba(15, 23, 42, .07);
  --radius: 24px;
  --container: 1540px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(31, 115, 255, .08), transparent 30rem),
    linear-gradient(180deg, #fff 0%, var(--bg) 48%, #f5f8fd 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.app-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--container); height: 76px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 900; letter-spacing: -.05em; }
.brand-mark { width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; transform: rotate(-8deg); }
.brand-mark span { background: var(--primary); border-radius: 999px 999px 999px 5px; }
.nav { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; }
.nav a { padding: 28px 15px 24px; font-size: 14px; font-weight: 800; color: #243047; border-bottom: 3px solid transparent; }
.nav a.active, .nav a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 42px; height: 42px; border: 0; background: transparent; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.user-pill { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: linear-gradient(135deg, #dbeafe, #f1f5f9); display: grid; place-items: center; }

.page { max-width: var(--container); margin: 0 auto; padding: 38px 32px 56px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(34px, 4vw, 56px); line-height: .98; letter-spacing: -.065em; margin-bottom: 12px; }
h2 { font-size: clamp(26px, 3vw, 42px); line-height: 1; letter-spacing: -.055em; }
h3 { font-size: 18px; letter-spacing: -.025em; }
h4 { margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.55; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 46px; border-radius: 14px; border: 1px solid var(--border); padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 850; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.045); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 14px 32px rgba(31,115,255,.24); }
.btn.danger { color: #b91c1c; border-color: rgba(239,68,68,.25); }
.btn.small { min-height: 36px; padding: 0 13px; font-size: 13px; border-radius: 11px; }
.panel, .card { background: rgba(255,255,255,.88); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 24px 0; }
.panel-body { padding: 24px; }

.hero-panel { padding: 28px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1fr); gap: 34px; align-items: stretch; margin-bottom: 22px; }
.search-box { display: flex; height: 54px; margin-top: 22px; border: 1px solid var(--border); border-radius: 15px; overflow: hidden; background: #fff; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 18px; }
.search-box button { width: 58px; border: 0; background: var(--primary); color: #fff; cursor: pointer; }
.hero-image { border-radius: 20px; min-height: 230px; background: url('https://images.unsplash.com/photo-1495521821757-a1efb6729352?auto=format&fit=crop&w=1200&q=80') center/cover; }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.summary-card { padding: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; min-height: 128px; }
.summary-icon { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; font-size: 28px; background: var(--primary-soft); color: var(--primary); }
.summary-card.green .summary-icon { background: #eaf8ef; color: var(--green); }
.summary-card.red .summary-icon { background: #fff0f2; color: var(--red); }
.summary-card.violet .summary-icon { background: #f2eaff; color: var(--violet); }
.summary-value { font-size: 28px; font-weight: 950; color: var(--primary); }
.summary-card.green .summary-value { color: var(--green); }
.summary-card.red .summary-value { color: var(--red); }
.summary-card.violet .summary-value { color: var(--violet); }
.summary-card p { margin: 4px 0 0; font-size: 14px; }
.content-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr) 360px; gap: 22px; }
.content-grid.two { grid-template-columns: 360px minmax(0, 1fr); }
.action-list { display: grid; gap: 10px; }
.action-item { min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: space-between; font-weight: 850; }
.note-card { margin-top: 18px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #fff8db, #fff2b9); border: 1px solid rgba(234,179,8,.24); }

.recipe-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.recipe-card { overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 22px 55px rgba(15,23,42,.1); }
.recipe-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.recipe-body { padding: 16px; }
.recipe-body p { font-size: 14px; margin-bottom: 0; }
.recipe-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.badge { border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 850; background: #dcfce7; color: #15803d; }
.badge.medium { background: #ffedd5; color: #c2410c; }

.filter-panel { padding: 24px; margin-bottom: 22px; }
.filter-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 210px 150px 150px auto; gap: 14px; align-items: end; }
.filter-grid label, .advanced-filter-grid label { display: grid; gap: 7px; color: #334155; font-size: 13px; font-weight: 850; }
.filter-grid input, .filter-grid select, .advanced-filter-grid input { width: 100%; height: 46px; border: 1px solid var(--border); border-radius: 13px; padding: 0 13px; background: #fff; color: var(--text); outline: none; }
.filterbar { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.link-button { border: 0; background: transparent; color: var(--primary); font-weight: 850; cursor: pointer; padding: 0; }
.advanced-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding: 18px; border-radius: 18px; background: #f8fbff; border: 1px solid rgba(31,115,255,.08); }
.chip-set { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip-set.compact { margin-top: 14px; }
.chip { padding: 8px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 850; border: 1px solid rgba(31,115,255,.09); }
.chip.active { background: var(--primary); color: #fff; }
.filter-summary { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.recipe-list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.recipe-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.recipe-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.recipe-footer strong { color: var(--primary); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pagination a { min-width: 42px; height: 42px; padding: 0 14px; border-radius: 13px; border: 1px solid var(--border); background: #fff; display: inline-grid; place-items: center; font-weight: 850; color: #334155; }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a.disabled { color: #94a3b8; background: #f8fafc; }

/* Recipe detail page - updated reference layout */
.recipe-page-template { padding-top: 30px; }
.breadcrumbs-line { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #64748b; font-size: 14px; font-weight: 750; }
.breadcrumbs-line a:hover { color: var(--primary); }
.breadcrumbs-line strong { color: #334155; }
.recipe-hero-card { display: grid; grid-template-columns: minmax(380px, .58fr) minmax(0, 1fr); gap: 44px; padding: 28px; margin-bottom: 24px; align-items: stretch; }
.recipe-hero-media { position: relative; min-height: 360px; }
.recipe-hero-media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; border-radius: 18px; }
.favorite-floating { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; border: 0; border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 12px 28px rgba(15,23,42,.12); color: #7c2d6b; font-size: 28px; cursor: pointer; }
.recipe-hero-content { display: flex; flex-direction: column; justify-content: center; gap: 20px; min-width: 0; }
.recipe-hero-content h1 { font-size: clamp(34px, 3vw, 46px); margin-bottom: 10px; }
.recipe-hero-content p { max-width: 620px; font-size: 17px; color: #334155; }
.hero-stat-row { max-width: 560px; }
.hero-stat-row .stat { text-align: left; padding: 16px 18px; }
.hero-stat-row .stat strong { margin-top: 0; }
.hero-stat-row .stat span { margin-top: 4px; }
.recipe-hero-actions { margin-top: auto; display: flex; justify-content: flex-end; gap: 14px; }
.recipe-hero-actions .btn { min-width: 150px; }
.recipe-primary-grid { display: grid; grid-template-columns: minmax(330px, .52fr) minmax(0, 1fr); gap: 24px; align-items: stretch; margin-bottom: 24px; }
.compact-head { padding: 28px 28px 0; }
.compact-head h3 { font-size: 24px; margin-bottom: 0; }
.ingredient-table-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ingredient-table-list li { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 16px; min-height: 56px; border-bottom: 1px solid var(--border); color: #334155; }
.ingredient-table-list li:last-child { border-bottom: 0; }
.ingredient-table-list span { font-weight: 800; color: #334155; }
.ingredient-table-list strong { font-size: 15px; }
.ingredient-table-list em { font-style: normal; color: #64748b; text-align: right; }
.instruction-list-clean { display: grid; padding-top: 14px; }
.instruction-row { display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--border); }
.instruction-row:last-child { border-bottom: 0; }
.instruction-row span { width: 28px; height: 28px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 950; display: grid; place-items: center; }
.instruction-row p { margin: 0; color: #334155; }
.recipe-secondary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mini-recipe-link { display: grid; grid-template-columns: 92px 1fr 24px; align-items: center; gap: 18px; }
.mini-recipe-link img { width: 92px; height: 78px; object-fit: cover; border-radius: 14px; }
.mini-recipe-link strong { display: block; margin-bottom: 5px; }
.mini-recipe-link em { display: block; font-style: normal; color: var(--muted); line-height: 1.45; }
.mini-recipe-link b { font-size: 28px; color: #0f172a; justify-self: end; }
.nutrition-mini-panel h3 span { color: var(--muted); font-weight: 650; }
.nutrition-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nutrition-mini-grid div { min-height: 84px; border: 1px solid var(--border); border-radius: 16px; display: grid; place-items: center; text-align: center; background: #fff; }
.nutrition-mini-grid strong { display: block; font-size: 24px; }
.nutrition-mini-grid span { color: var(--muted); font-weight: 750; font-size: 13px; }

.footer { border-top: 1px solid var(--border); margin-top: 40px; background: rgba(255,255,255,.7); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 34px 32px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); }

@media (max-width: 1200px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .recipe-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-hero-card, .recipe-primary-grid, .recipe-secondary-grid { grid-template-columns: 1fr; }
  .recipe-hero-actions { justify-content: flex-start; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .hero-panel, .content-grid, .content-grid.two { grid-template-columns: 1fr; }
  .summary-grid, .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .advanced-filter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .header-inner, .page, .footer-inner { padding-left: 18px; padding-right: 18px; }
  .summary-grid, .recipe-grid, .recipe-list-grid, .stat-row, .advanced-filter-grid, .nutrition-mini-grid { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .filter-grid { grid-template-columns: 1fr; }
  .recipe-hero-card { padding: 18px; gap: 22px; }
  .recipe-hero-media, .recipe-hero-media img { min-height: 240px; }
  .ingredient-table-list li, .mini-recipe-link { grid-template-columns: 1fr; }
  .mini-recipe-link img { width: 100%; height: 160px; }
  .recipe-hero-actions { flex-direction: column; }
}
/* Live core integration layer */
body.cb-core-redesign .page-title,
body.cb-core-redesign #scroll-top,
body.cb-core-redesign .mobile-nav-toggle,
body.cb-core-redesign [data-aos] {
  display: none !important;
}

body.cb-core-redesign .main {
  min-height: calc(100vh - 76px);
}

body.cb-core-redesign .nav,
body.cb-core-redesign .cb-navmenu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

body.cb-core-redesign .cb-navmenu > a,
body.cb-core-redesign .cb-nav-dropdown > a,
body.cb-core-redesign .cb-navmenu-guest > a {
  padding: 28px 15px 24px;
  font-size: 14px;
  font-weight: 800;
  color: #243047;
  border-bottom: 3px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.cb-core-redesign .cb-navmenu > a.active,
body.cb-core-redesign .cb-navmenu > a:hover,
body.cb-core-redesign .cb-nav-dropdown > a.active,
body.cb-core-redesign .cb-nav-dropdown > a:hover,
body.cb-core-redesign .cb-nav-dropdown:hover > a,
body.cb-core-redesign .cb-nav-dropdown:focus-within > a,
body.cb-core-redesign .cb-navmenu-guest > a.active,
body.cb-core-redesign .cb-navmenu-guest > a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

body.cb-core-redesign .cb-nav-dropdown,
body.cb-core-redesign .cb-user-menu {
  position: relative;
  display: flex;
  align-items: stretch;
}

body.cb-core-redesign .nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  min-width: 220px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px);
  transition: opacity .16s ease, transform .16s ease;
}

body.cb-core-redesign .nav-dropdown-menu-right {
  left: auto;
  right: 0;
  transform: translateY(12px);
}

body.cb-core-redesign .cb-nav-dropdown:hover .nav-dropdown-menu,
body.cb-core-redesign .cb-nav-dropdown:focus-within .nav-dropdown-menu,
body.cb-core-redesign .cb-user-menu:hover .nav-dropdown-menu,
body.cb-core-redesign .cb-user-menu:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

body.cb-core-redesign .cb-user-menu:hover .nav-dropdown-menu-right,
body.cb-core-redesign .cb-user-menu:focus-within .nav-dropdown-menu-right {
  transform: translateY(0);
}

body.cb-core-redesign .nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  color: #243047;
}

body.cb-core-redesign .nav-dropdown-menu a:hover,
body.cb-core-redesign .nav-dropdown-menu a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

body.cb-core-redesign .cb-user-trigger-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.cb-core-redesign .hero-panel {
  margin-top: 8px;
  padding: 30px;
  border: 1.5px solid rgba(15,23,42,.12);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 48px rgba(15,23,42,.08);
  overflow: hidden;
}

body.cb-core-redesign .hero-panel > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 8px;
}

body.cb-core-redesign .search-box {
  margin-top: 26px;
  border-color: rgba(15,23,42,.12);
}

body.cb-core-redesign .hero-image {
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 24px;
}

body.cb-core-redesign .recipe-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cb-core-redesign .cb-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
}

body.cb-core-redesign .recipe-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

body.cb-core-redesign .recipe-footer,
body.cb-core-redesign .cb-recipe-footer {
  margin-top: auto;
}

body.cb-core-redesign .dashboard-picks-panel .panel-body {
  display: flex;
}

body.cb-core-redesign .dashboard-picks-grid {
  width: 100%;
  grid-auto-rows: 1fr;
  align-items: stretch;
}

body.cb-core-redesign .dashboard-picks-grid .recipe-img {
  height: 198px;
}

body.cb-core-redesign .cb-filter-panel {
  padding: 28px 28px 24px;
}

body.cb-core-redesign .cb-filter-grid {
  grid-template-columns: minmax(220px, 1.35fr) 190px 150px 150px auto;
  gap: 16px;
}

body.cb-core-redesign .cb-filter-grid > label {
  min-width: 0;
}

body.cb-core-redesign .cb-filter-grid .form-control,
body.cb-core-redesign .cb-filter-grid .form-select {
  height: 48px;
}

body.cb-core-redesign .cb-filter-grid > .cb-filterbar,
body.cb-core-redesign .cb-filter-grid > .cb-advanced-filters {
  grid-column: 1 / -1;
}

body.cb-core-redesign .cb-filter-submit {
  min-width: 120px;
  align-self: end;
  white-space: nowrap;
}

body.cb-core-redesign .cb-reset-link {
  color: var(--text);
  font-weight: 800;
}

body.cb-core-redesign .cb-filter-footnote {
  margin-top: 12px;
  color: var(--muted);
}

body.cb-core-redesign .cb-recipe-list-grid {
  margin-bottom: 14px;
}

body.cb-core-redesign .pagination {
  margin-top: 52px;
  padding-bottom: 4px;
}

body.cb-core-redesign .recipe-page-template {
  padding-top: 34px;
}

body.cb-core-redesign .cb-breadcrumbs-line {
  display: flex;
}

body.cb-core-redesign .cb-recipe-hero-card {
  margin-top: 8px;
  padding: 30px;
  border: 1.5px solid rgba(15,23,42,.12);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 48px rgba(15,23,42,.08);
  overflow: hidden;
}

body.cb-core-redesign .cb-recipe-hero-media {
  border-radius: 18px;
  overflow: hidden;
}

body.cb-core-redesign .cb-detail-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

body.cb-core-redesign .cb-visibility {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

body.cb-core-redesign .cb-visibility-public {
  background: #dcfce7;
  color: #15803d;
}

body.cb-core-redesign .cb-visibility-unlisted {
  background: #ffedd5;
  color: #c2410c;
}

body.cb-core-redesign .cb-visibility-private {
  background: #e2e8f0;
  color: #334155;
}

body.cb-core-redesign .cb-link-inline,
body.cb-core-redesign .cb-link-inline a {
  color: var(--primary);
  font-weight: 700;
}

body.cb-core-redesign .cb-detail-meta-grid {
  max-width: 100%;
}

body.cb-core-redesign .cb-recipe-hero-actions {
  justify-content: flex-start;
}

body.cb-core-redesign .cb-ingredients-panel .panel-body,
body.cb-core-redesign .cb-steps-panel .panel-body {
  padding-top: 10px;
}

body.cb-core-redesign .cb-ingredient-group {
  padding: 10px 0 4px;
}

body.cb-core-redesign .cb-ingredient-group + .cb-ingredient-group {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

body.cb-core-redesign .ingredient-table-list.cb-ingredient-list li {
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: start;
  gap: 6px 18px;
  min-height: 0;
  padding: 14px 0;
}

body.cb-core-redesign .ingredient-table-list.cb-ingredient-list li span {
  font-size: 15px;
  line-height: 1.5;
}

body.cb-core-redesign .ingredient-table-list.cb-ingredient-list li strong {
  font-size: 17px;
  line-height: 1.4;
}

body.cb-core-redesign .ingredient-table-list.cb-ingredient-list li em {
  grid-column: 2;
  margin-top: -2px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

body.cb-core-redesign .cb-ingredient-group-title {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.cb-core-redesign .instruction-list-clean {
  padding-top: 8px;
}

body.cb-core-redesign .instruction-row.cb-step-item {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0 16px;
  align-items: start;
  min-height: 0;
  padding: 18px 0;
}

body.cb-core-redesign .instruction-row.cb-step-item > span {
  width: 34px;
  height: 34px;
  margin-top: 3px;
  font-size: 14px;
}

body.cb-core-redesign .cb-step-copy,
body.cb-core-redesign .cb-step-copy p,
body.cb-core-redesign .cb-step-copy li {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}

body.cb-core-redesign .cb-step-copy p + p {
  margin-top: 12px;
}

body.cb-core-redesign .cb-step-copy > :last-child {
  margin-bottom: 0;
}

body.cb-core-redesign .cb-step-image {
  margin-top: 16px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

body.cb-core-redesign .cb-step-image img {
  width: 100%;
  display: block;
}

body.cb-core-redesign .cb-recipe-secondary-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

body.cb-core-redesign .cb-secondary-panel,
body.cb-core-redesign .cb-nutrition-panel,
body.cb-core-redesign .cb-recipe-utility-panel {
  min-width: 0;
  overflow: hidden;
}

body.cb-core-redesign .cb-secondary-stack {
  gap: 16px;
}

body.cb-core-redesign .cb-mini-recipe-link {
  grid-template-columns: 108px minmax(0, 1fr) 18px;
  gap: 16px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(15,23,42,.09);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

body.cb-core-redesign .cb-mini-recipe-link img,
body.cb-core-redesign .cb-mini-recipe-media {
  width: 108px;
  min-width: 108px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

body.cb-core-redesign .cb-mini-recipe-copy {
  min-width: 0;
}

body.cb-core-redesign .cb-mini-recipe-copy strong {
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.cb-core-redesign .cb-mini-recipe-copy em {
  font-size: 14px;
}

body.cb-core-redesign .cb-mini-recipe-link b {
  font-size: 22px;
  align-self: center;
}

body.cb-core-redesign .cb-nutrition-mini-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.cb-core-redesign .cb-sidebar-stack {
  gap: 18px;
}

body.cb-core-redesign .cb-sidebar-form {
  gap: 14px;
}

body.cb-core-redesign .cb-sidebar-meta.cb-utility-meta {
  gap: 10px;
}

body.cb-core-redesign .cb-sidebar-meta.cb-utility-meta div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
}

body.cb-core-redesign .cb-sidebar-meta.cb-utility-meta strong {
  text-align: right;
  overflow-wrap: anywhere;
}

body.cb-core-redesign .cb-utility-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
}

body.cb-core-redesign .cb-dashboard-recipe-placeholder,
body.cb-core-redesign .cb-entity-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(31,115,255,.12), rgba(15,23,42,.06));
}

body.cb-core-redesign .cb-dashboard-recipe-placeholder span,
body.cb-core-redesign .cb-entity-placeholder span {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: var(--primary);
  font-size: 24px;
}

@media (max-width: 1280px) {
  body.cb-core-redesign .cb-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.cb-core-redesign .cb-filter-submit,
  body.cb-core-redesign .cb-filter-grid > .cb-filterbar,
  body.cb-core-redesign .cb-filter-grid > .cb-advanced-filters {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1200px) {
  body.cb-core-redesign .cb-recipe-hero-card,
  body.cb-core-redesign .cb-recipe-primary-grid,
  body.cb-core-redesign .cb-recipe-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  body.cb-core-redesign .cb-navmenu {
    display: none;
  }
}

@media (max-width: 700px) {
  body.cb-core-redesign .hero-stat-row,
  body.cb-core-redesign .cb-detail-meta-grid,
  body.cb-core-redesign .cb-nutrition-mini-grid {
    grid-template-columns: 1fr;
  }

  body.cb-core-redesign .ingredient-table-list.cb-ingredient-list li,
  body.cb-core-redesign .instruction-row.cb-step-item,
  body.cb-core-redesign .cb-mini-recipe-link,
  body.cb-core-redesign .cb-sidebar-meta.cb-utility-meta div {
    grid-template-columns: 1fr;
  }

  body.cb-core-redesign .ingredient-table-list.cb-ingredient-list li em {
    grid-column: auto;
  }

  body.cb-core-redesign .cb-mini-recipe-link img,
  body.cb-core-redesign .cb-mini-recipe-media {
    width: 100%;
    min-width: 0;
    height: 180px;
  }
}
/* Legacy editor and import cleanup */
body.cb-core-redesign .cb-editor-page form.row.gy-4,
body.cb-core-redesign .cb-editor-page .row.g-4.align-items-start {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start !important;
}

body.cb-core-redesign .cb-editor-page form.row.gy-4 > [class*="col-"],
body.cb-core-redesign .cb-editor-page .row.g-4.align-items-start > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.cb-core-redesign .cb-editor-page .col-lg-8 {
  display: grid;
  gap: 24px;
}

body.cb-core-redesign .cb-editor-page .col-lg-4 {
  display: grid;
  gap: 18px;
  align-content: start;
}

body.cb-core-redesign .cb-editor-page .card.border-0.shadow-sm.mt-4,
body.cb-core-redesign .cb-editor-page .card.border-0.shadow-sm.mb-4,
body.cb-core-redesign .cb-editor-page .card.border-0.shadow-sm.cb-editor-section {
  margin: 0 !important;
}

body.cb-core-redesign .cb-editor-page .card-body {
  display: grid;
  gap: 20px;
}

body.cb-core-redesign .cb-editor-page .card-body > * {
  margin: 0 !important;
  min-width: 0;
}

body.cb-core-redesign .cb-editor-page .btn.w-100 + .btn.w-100,
body.cb-core-redesign .cb-editor-page .btn.w-100 + a.btn.w-100,
body.cb-core-redesign .cb-editor-page a.btn.w-100 + .cb-note-card,
body.cb-core-redesign .cb-editor-page button.btn.w-100 + .small.text-muted {
  margin-top: 10px !important;
}

body.cb-core-redesign .cb-editor-page .form-text,
body.cb-core-redesign .cb-add-page .form-text,
body.cb-core-redesign .page .form-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

body.cb-core-redesign .cb-editor-page .badge.rounded-pill.text-bg-secondary {
  border: 1px solid rgba(31,115,255,.14) !important;
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

body.cb-core-redesign .cb-editor-page .row.g-3,
body.cb-core-redesign .cb-editor-page .row.g-2.align-items-start,
body.cb-core-redesign .cb-editor-page .row.g-2.align-items-end.mb-3,
body.cb-core-redesign .kura-review-grid > .row.g-3 {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
}

body.cb-core-redesign .cb-editor-page .row.g-3 > [class*="col-"],
body.cb-core-redesign .cb-editor-page .row.g-2.align-items-start > [class*="col-"],
body.cb-core-redesign .cb-editor-page .row.g-2.align-items-end.mb-3 > [class*="col-"],
body.cb-core-redesign .kura-review-grid > .row.g-3 > [class*="col-"] {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: span 12;
}

body.cb-core-redesign .cb-editor-page .row.g-3 > .col-md-2,
body.cb-core-redesign .kura-review-grid > .row.g-3 > .col-md-2 {
  grid-column: span 2;
}

body.cb-core-redesign .cb-editor-page .row.g-3 > .col-md-3,
body.cb-core-redesign .kura-review-grid > .row.g-3 > .col-md-3,
body.cb-core-redesign .cb-editor-page .row.g-2.align-items-end.mb-3 > .col-md-3 {
  grid-column: span 3;
}

body.cb-core-redesign .cb-editor-page .row.g-3 > .col-md-4,
body.cb-core-redesign .kura-review-grid > .row.g-3 > .col-md-4 {
  grid-column: span 4;
}

body.cb-core-redesign .cb-editor-page .row.g-3 > .col-md-6,
body.cb-core-redesign .kura-review-grid > .row.g-3 > .col-md-6 {
  grid-column: span 6;
}

body.cb-core-redesign .cb-editor-page .row.g-2.align-items-end.mb-3 > .col-md-7 {
  grid-column: span 7;
}

body.cb-core-redesign .cb-editor-page .row.g-2.align-items-end.mb-3 > .col-md-2 {
  grid-column: span 2;
}

body.cb-core-redesign .cb-editor-page .row.g-2.align-items-start > .col-md,
body.cb-core-redesign .cb-editor-page .row.g-2.align-items-start > .col-md-auto {
  grid-column: span 6;
}

body.cb-core-redesign .cb-editor-page .row.g-2.align-items-start > .col-md-auto {
  display: grid !important;
  place-items: center;
}

body.cb-core-redesign .cb-editor-page .table-responsive {
  overflow: visible;
}

body.cb-core-redesign .cb-editor-page table.table,
body.cb-core-redesign .kura-import-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

body.cb-core-redesign .cb-editor-page table.table thead th,
body.cb-core-redesign .kura-import-table thead th {
  padding: 0 12px 6px;
  border: 0;
}

body.cb-core-redesign .cb-editor-page table.table tbody td,
body.cb-core-redesign .kura-import-table tbody td {
  padding: 12px 8px;
  vertical-align: top;
  background: #f8fbff;
  border-top: 1px solid rgba(15,23,42,.08);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

body.cb-core-redesign .cb-editor-page table.table tbody td:first-child,
body.cb-core-redesign .kura-import-table tbody td:first-child {
  border-left: 1px solid rgba(15,23,42,.08);
  border-radius: 18px 0 0 18px;
}

body.cb-core-redesign .cb-editor-page table.table tbody td:last-child,
body.cb-core-redesign .kura-import-table tbody td:last-child {
  border-right: 1px solid rgba(15,23,42,.08);
  border-radius: 0 18px 18px 0;
}

body.cb-core-redesign .cb-editor-page table.table tbody td .form-control,
body.cb-core-redesign .cb-editor-page table.table tbody td .form-select,
body.cb-core-redesign .kura-import-table tbody td .form-control,
body.cb-core-redesign .kura-import-table tbody td .form-select {
  background: #fff;
}

body.cb-core-redesign .cb-editor-page .btn.btn-link.text-danger,
body.cb-core-redesign .kura-import-table .remove-import-row,
body.cb-core-redesign .import-step-row .remove-import-step {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,.18);
  background: #fff;
  color: #ef4444 !important;
  box-shadow: none;
}

body.cb-core-redesign .cb-editor-page #stepsWrap {
  display: grid !important;
  gap: 16px !important;
}

body.cb-core-redesign .cb-editor-page .step-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr) 28px;
  gap: 16px;
  align-items: start !important;
  padding: 18px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  background: #f8fbff;
}

body.cb-core-redesign .cb-step-mdwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 16px;
  align-items: stretch;
}

body.cb-core-redesign .cb-step-mdinput,
body.cb-core-redesign .cb-step-mdpreview {
  min-height: 200px;
}

body.cb-core-redesign .cb-step-mdpreview {
  padding: 16px 18px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  background: #fff;
  overflow: auto;
}

body.cb-core-redesign .cb-step-mdpreview:empty::before {
  content: 'Markdown preview appears here.';
  color: var(--muted);
  font-size: 14px;
}

body.cb-core-redesign .cb-editor-page .step-row > div[style*="min-width:220px"],
body.cb-core-redesign .cb-editor-page .step-row > div[style*="min-width:240px"] {
  min-width: 0 !important;
  width: 100%;
  padding: 14px;
  border: 1px dashed rgba(31,115,255,.14);
  border-radius: 18px;
  background: rgba(31,115,255,.04);
}

body.cb-core-redesign .cb-editor-page .step-row img.img-fluid {
  width: 100%;
  max-height: 148px !important;
  object-fit: cover;
}

body.cb-core-redesign .cb-add-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

body.cb-core-redesign .cb-add-main {
  display: grid;
  gap: 22px;
}

body.cb-core-redesign .cb-add-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

body.cb-core-redesign .cb-add-list {
  display: grid;
  gap: 12px;
}

body.cb-core-redesign .cb-add-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  background: #fff;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

body.cb-core-redesign .cb-add-item:hover {
  transform: translateY(-2px);
  border-color: rgba(31,115,255,.18);
  box-shadow: 0 18px 36px rgba(15,23,42,.07);
}

body.cb-core-redesign .cb-add-item-input {
  padding-top: 2px;
}

body.cb-core-redesign .cb-add-item-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

body.cb-core-redesign .cb-add-item-title {
  display: block;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.03em;
}

body.cb-core-redesign .cb-add-item-copy,
body.cb-core-redesign .cb-add-item-date,
body.cb-core-redesign .cb-add-selection,
body.cb-core-redesign .cb-add-note-copy {
  color: var(--muted);
}

body.cb-core-redesign .kura-review-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}

body.cb-core-redesign .kura-import-note-card {
  border-radius: 22px;
  background: #f8fbff;
  border: 1px solid rgba(15,23,42,.08);
}

body.cb-core-redesign .import-step-row {
  padding: 16px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 20px;
  background: #f8fbff;
}

@media (max-width: 1200px) {
  body.cb-core-redesign .cb-editor-page form.row.gy-4,
  body.cb-core-redesign .cb-editor-page .row.g-4.align-items-start,
  body.cb-core-redesign .cb-add-layout,
  body.cb-core-redesign .kura-review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.cb-core-redesign .cb-editor-page .row.g-3,
  body.cb-core-redesign .cb-editor-page .row.g-2.align-items-start,
  body.cb-core-redesign .cb-editor-page .row.g-2.align-items-end.mb-3,
  body.cb-core-redesign .kura-review-grid > .row.g-3,
  body.cb-core-redesign .cb-step-mdwrap,
  body.cb-core-redesign .cb-editor-page .step-row {
    grid-template-columns: 1fr;
  }

  body.cb-core-redesign .cb-editor-page .row.g-3 > [class*="col-"],
  body.cb-core-redesign .cb-editor-page .row.g-2.align-items-start > [class*="col-"],
  body.cb-core-redesign .cb-editor-page .row.g-2.align-items-end.mb-3 > [class*="col-"],
  body.cb-core-redesign .kura-review-grid > .row.g-3 > [class*="col-"] {
    grid-column: 1 / -1;
  }

  body.cb-core-redesign .cb-editor-page .table-responsive {
    overflow-x: auto;
  }

  body.cb-core-redesign .cb-add-toolbar,
  body.cb-core-redesign .cb-add-item-topline {
    align-items: stretch;
    flex-direction: column;
  }
}