:root {
  --ink: #141816;
  --muted: #68716c;
  --line: #dfe5e1;
  --paper: #fff;
  --bg: #f4f6f4;
  --dark: #111513;
  --green: #245c4e;
  --green2: #1b473d;
  --soft: #eaf1ee;
  --blue: #2563eb;
  --red: #b42318;
  --orange: #b45309;
  --shadow: 0 10px 30px rgba(18, 35, 28, 0.06);
  --radius: 16px;
  --sidebar: 250px;
}
* {
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--dark);
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 24px;
}
.brand-lockup b {
  display: block;
  letter-spacing: 0.04em;
}
.brand-lockup small {
  display: block;
  color: #8fa098;
  font-size: 11px;
}
.brand-symbol {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #fff;
  color: var(--dark);
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.04em;
  border-radius: 10px;
  flex: 0 0 auto;
}
.side-nav {
  display: grid;
  gap: 6px;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #aebbb5;
  font-weight: 650;
}
.side-nav a:hover,
.side-nav a.active {
  background: #1d2421;
  color: #fff;
}
.sidebar-user {
  margin-top: auto;
  border-top: 1px solid #2d3732;
  padding: 18px 8px 2px;
}
.sidebar-user b,
.sidebar-user small {
  display: block;
}
.sidebar-user small {
  font-size: 11px;
  color: #8fa098;
  word-break: break-all;
}
.shell {
  margin-left: var(--sidebar);
  min-height: 100vh;
  padding-bottom: 30px;
}
.topbar {
  height: 64px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.user-chip {
  background: var(--soft);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.icon-btn:hover {
  background: var(--soft);
}
.main-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 34px 70px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-head.compact {
  margin-bottom: 22px;
}
.page-head h1 {
  margin: 5px 0 6px;
  font-size: clamp(29px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.back-link:hover {
  color: var(--ink);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 15px;
  font-weight: 750;
  background: #fff;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green2);
}
.btn-outline {
  border-color: #cbd5d0;
  background: #fff;
}
.btn-outline:hover,
.btn-ghost:hover {
  background: var(--soft);
}
.btn-ghost {
  background: transparent;
}
.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-sm {
  padding: 7px 10px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.alert {
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 18px;
  border: 1px solid;
}
.alert-success {
  background: #edf8f3;
  border-color: #b8dfcd;
  color: #19603f;
}
.alert-error {
  background: #fff0ef;
  border-color: #f0b9b4;
  color: #952d24;
}
.alert-warning {
  background: #fff7e8;
  border-color: #f3d39e;
  color: #86530a;
}
.alert-info {
  background: #eef5ff;
  border-color: #c7d9fa;
  color: #245391;
}
.alert.compact {
  padding: 10px 12px;
  margin: 12px 0 0;
  font-size: 13px;
}
.inline {
  display: flex;
  align-items: center;
  gap: 9px;
}
.inline.wrap {
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
.pill,
.access-badge,
.branch-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #f8faf9;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}
.pill.success {
  background: #edf8f3;
  color: #19603f;
}
.section {
  margin-top: 36px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
}
.section-head p {
  margin: 2px 0 0;
  color: var(--muted);
}
.section-head > a {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.metric-card span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.metric-card b {
  font-size: 36px;
  line-height: 1.1;
  margin: 7px 0;
}
.metric-card small {
  color: var(--muted);
}
.repo-grid,
.repo-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.repo-list {
  grid-template-columns: 1fr;
}
.repo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 15px;
  box-shadow: var(--shadow);
}
.repo-card:hover {
  border-color: #a7bab1;
  transform: translateY(-1px);
}
.repo-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--green);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.repo-card-main {
  min-width: 0;
  flex: 1;
}
.repo-card h3 {
  margin: 0;
  font-size: 18px;
}
.repo-card p {
  margin: 5px 0 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.repo-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}
.activity-list {
  overflow: hidden;
}
.activity-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.activity-item:last-child {
  border-bottom: 0;
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 7px;
}
.activity-item b {
  font-size: 14px;
}
.activity-item p {
  margin: 1px 0;
  color: var(--muted);
  font-size: 12px;
}
.activity-item time {
  font-size: 12px;
  color: var(--muted);
}
.empty-state {
  text-align: center;
  padding: 55px 22px;
}
.empty-state > .icon {
  width: 44px;
  height: 44px;
  color: #9ba9a2;
}
.empty-state h3 {
  margin: 14px 0 5px;
}
.empty-state p {
  color: var(--muted);
  margin: 0 0 18px;
}
.empty-inline {
  padding: 26px;
  text-align: center;
  color: var(--muted);
}
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.filter-chip.active {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.form-card {
  padding: 25px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}
.field label {
  font-size: 13px;
  font-weight: 800;
}
.field small {
  color: var(--muted);
  font-size: 12px;
}
.field input,
.field select,
.field textarea,
.branch-select select,
.move-form select {
  width: 100%;
  border: 1px solid #cbd5d0;
  background: #fff;
  border-radius: 9px;
  padding: 11px 12px;
  outline: 0;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(36, 92, 78, 0.1);
}
.form-grid {
  display: grid;
  gap: 0 16px;
}
.form-grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.span-2 {
  grid-column: span 2;
}
.input-pair {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 7px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.required {
  color: var(--red);
  font-size: 11px;
}
.repo-header {
  margin: -34px -34px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 30px 34px 0;
}
.repo-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.repo-title-row h1 {
  font-size: 34px;
  margin: 6px 0 5px;
  letter-spacing: -0.025em;
}
.repo-title-row p {
  color: var(--muted);
  margin: 0;
  max-width: 750px;
}
.breadcrumb {
  display: flex;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--green);
}
.repo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.branch-select label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.branch-select select {
  padding: 7px 33px 7px 8px;
  min-width: 180px;
}
.repo-tabs {
  display: flex;
  gap: 2px;
  margin-top: 18px;
  overflow-x: auto;
}
.repo-tabs a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 13px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.repo-tabs a.active {
  color: var(--ink);
  border-bottom-color: var(--green);
}
.repo-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 16px;
}
.repo-summary > div {
  padding: 17px;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.repo-summary > div:last-child {
  border-right: 0;
}
.repo-summary b {
  font-size: 25px;
}
.repo-summary span {
  color: var(--muted);
  font-size: 12px;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}
.toolbar-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.recipe-table {
  overflow: hidden;
}
.table-head,
.recipe-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.8fr) 110px;
  align-items: center;
}
.table-head {
  padding: 10px 16px;
  background: #f7f9f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.recipe-row {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
}
.recipe-row:hover {
  background: #fbfcfb;
}
.recipe-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.recipe-title-cell img,
.recipe-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--soft);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.recipe-title-cell b,
.recipe-title-cell small,
.commit-cell small {
  display: block;
}
.recipe-title-cell b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recipe-title-cell small,
.commit-cell small {
  color: var(--muted);
  font-size: 11px;
}
.commit-cell code {
  font-size: 12px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  background: #edf0ee;
  color: #59615d;
}
.status-badge.success {
  background: #e5f5ed;
  color: #12633e;
}
.status-badge.warning {
  background: #fff1d8;
  color: #8a5500;
}
.status-badge.danger {
  background: #fee9e7;
  color: #a32d24;
}
.status-badge.info {
  background: #e8f0ff;
  color: #2457a6;
}
.foot-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}
.foot-actions a {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--green);
  font-weight: 700;
}
.editor-section {
  margin-bottom: 18px;
}
.editor-section.card {
  padding: 23px;
}
.section-title {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.section-title > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.section-title h2 {
  margin: 0;
}
.section-title p {
  margin: 2px 0;
  color: var(--muted);
}
.component-card {
  padding: 22px;
  margin-bottom: 14px;
}
.component-head,
.subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.component-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 18px;
}
.component-number {
  font-size: 17px;
  font-weight: 850;
}
.text-danger {
  border: 0;
  background: none;
  color: var(--red);
  font-size: 13px;
}
.subsection {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.subsection h3 {
  margin: 0;
  font-size: 16px;
}
.ingredient-row,
.step-row {
  display: flex;
  gap: 8px;
  align-items: start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.drag-handle {
  color: #a4aea9;
  padding-top: 10px;
}
.ingredient-fields {
  display: grid;
  grid-template-columns: 1.4fr 0.55fr 0.45fr 0.65fr 0.55fr 0.8fr 0.8fr 1fr;
  gap: 7px;
  flex: 1;
}
.ingredient-fields input,
.step-fields input,
.step-fields textarea {
  min-width: 0;
  border: 1px solid #d3dcd7;
  border-radius: 8px;
  padding: 9px;
}
.row-remove {
  border: 0;
  background: none;
  color: #9a4a44;
  font-size: 22px;
  padding: 4px;
}
.step-index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 5px;
}
.step-fields {
  display: grid;
  grid-template-columns: 1fr 2.2fr 0.55fr 0.55fr 1.2fr;
  gap: 7px;
  flex: 1;
}
.step-fields textarea {
  min-height: 62px;
  resize: vertical;
}
.sticky-save {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  background: rgba(17, 21, 19, 0.94);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  margin-top: 18px;
}
.sticky-save b,
.sticky-save small {
  display: block;
}
.sticky-save small {
  color: #aebbb5;
}
.recipe-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}
.recipe-hero-image {
  width: 116px;
  height: 116px;
  border-radius: 16px;
  object-fit: cover;
}
.head-actions {
  display: flex;
  gap: 8px;
}
.commit-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
  margin-bottom: 18px;
}
.commit-banner > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.commit-banner code {
  background: var(--soft);
  padding: 4px 7px;
  border-radius: 6px;
}
.commit-banner small {
  color: var(--muted);
}
.recipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}
.recipe-main {
  display: grid;
  gap: 16px;
}
.recipe-side {
  display: grid;
  gap: 16px;
  align-content: start;
}
.recipe-overview,
.recipe-component-view,
.recipe-side > .card {
  padding: 21px;
}
.recipe-overview h2,
.recipe-component-view h2,
.recipe-side h2 {
  margin-top: 0;
}
.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.definition-grid > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  border-bottom: 1px solid var(--line);
}
.definition-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.definition-grid dt {
  padding: 10px;
  background: #f6f8f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.definition-grid dd {
  margin: 0;
  padding: 10px;
}
.component-view-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.component-view-head > span {
  font-weight: 900;
  color: var(--green);
  font-size: 12px;
}
.component-view-head h2 {
  margin: 0;
}
.component-view-head p {
  margin: 2px 0 16px;
  color: var(--muted);
}
.recipe-component-view h3 {
  margin: 20px 0 8px;
  font-size: 15px;
}
.data-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.data-head,
.data-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr 0.75fr;
}
.data-head {
  background: #f5f7f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.data-head span,
.data-row > span {
  padding: 8px 10px;
}
.data-row {
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.data-row b,
.data-row small {
  display: block;
}
.data-row small {
  color: var(--muted);
}
.steps-view {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.steps-view li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
}
.steps-view li > span {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.steps-view b {
  font-size: 14px;
}
.steps-view p {
  margin: 2px 0;
}
.step-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.step-meta em {
  font-style: normal;
  background: var(--soft);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
}
.step-meta strong {
  font-size: 11px;
  color: var(--orange);
}
.component-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  gap: 10px;
}
.component-notes b,
.component-notes span {
  display: block;
}
.component-notes b {
  font-size: 11px;
  color: var(--muted);
}
.check-list {
  display: grid;
  gap: 8px;
}
.check-item {
  display: flex;
  gap: 9px;
  padding: 9px;
  border-radius: 9px;
  background: #f5f7f6;
}
.check-item > span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #cfd8d3;
  font-weight: 900;
}
.check-item.success {
  background: #edf8f3;
}
.check-item.success > span {
  background: #23925c;
  color: #fff;
}
.check-item.warning {
  background: #fff7e8;
}
.check-item.warning > span {
  background: #d58a12;
  color: #fff;
}
.check-item.danger {
  background: #fff0ef;
}
.check-item.danger > span {
  background: #be3b31;
  color: #fff;
}
.check-item b,
.check-item small {
  display: block;
}
.check-item small {
  font-size: 11px;
  color: var(--muted);
}
.fine-print {
  font-size: 11px;
  color: var(--muted);
}
.action-list {
  display: grid;
}
.action-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.history-list {
  display: grid;
  gap: 10px;
}
.history-item {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  padding: 16px;
}
.history-marker {
  font-size: 11px;
  font-weight: 900;
  color: var(--green);
}
.history-content p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.history-actions {
  display: flex;
  gap: 6px;
}
.version-snapshot {
  padding: 24px;
}
.recipe-preview-head {
  display: flex;
  justify-content: space-between;
}
.version-component {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}
.pr-list,
.issue-list,
.run-list,
.user-list {
  overflow: hidden;
}
.pr-row,
.issue-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}
.pr-row:last-child,
.issue-row:last-child {
  border-bottom: 0;
}
.pr-row:hover,
.issue-row:hover {
  background: #fbfcfb;
}
.pr-icon,
.issue-state {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--green);
}
.pr-main p,
.issue-main p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 12px;
}
.pr-main small,
.issue-main small {
  color: var(--muted);
}
.pr-row time {
  font-size: 11px;
  color: var(--muted);
}
.change-preview {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 5px 0 18px;
  overflow: hidden;
}
.change-preview h3 {
  padding: 12px;
  margin: 0;
  background: #f6f8f7;
  font-size: 14px;
}
.change-preview > div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}
.pr-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}
.pr-summary div {
  padding: 17px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  border-right: 1px solid var(--line);
}
.pr-summary div:last-child {
  border-right: 0;
}
.pr-summary b {
  font-size: 24px;
}
.pr-summary span {
  font-size: 12px;
  color: var(--muted);
}
.diff-card {
  padding: 20px;
  margin-bottom: 13px;
}
.diff-head {
  display: flex;
  justify-content: space-between;
}
.diff-head h3 {
  margin: 0;
}
.diff-head p {
  margin: 3px 0;
  color: var(--muted);
}
.diff-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}
.diff-label {
  padding: 8px 10px;
  background: #f5f7f6;
  font-weight: 800;
  font-size: 12px;
}
.diff-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.diff-values > div {
  min-width: 0;
}
.diff-values > div:first-child {
  border-right: 1px solid var(--line);
}
.diff-values span {
  display: block;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
}
.diff-values pre {
  margin: 0;
  padding: 9px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
  font:
    12px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.removed {
  background: #fff4f3;
}
.removed span {
  color: #9f3129;
}
.added {
  background: #f0faf5;
}
.added span {
  color: #176442;
}
.inline-comment {
  display: flex;
  border-top: 1px solid var(--line);
}
.inline-comment input {
  flex: 1;
  border: 0;
  padding: 10px;
  background: #fff;
}
.inline-comment button {
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  padding: 0 14px;
  font-weight: 700;
  color: var(--green);
}
.comments-list {
  overflow: hidden;
}
.comment-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.comment-item.resolved {
  opacity: 0.65;
}
.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.comment-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.comment-meta span,
.comment-meta time {
  color: var(--muted);
  font-size: 11px;
}
.comment-body p {
  margin: 5px 0;
}
.comment-form {
  padding: 14px;
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.comment-form textarea {
  flex: 1;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
}
.merge-box {
  margin-top: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.merge-box h2 {
  margin: 0;
}
.merge-box p {
  margin: 2px 0;
  color: var(--muted);
}
.merge-actions {
  display: flex;
  gap: 8px;
}
.label,
.priority {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
}
.label-bug {
  background: #fde8e6;
  color: #9d3129;
}
.label-feedback {
  background: #e6f0ff;
  color: #24569b;
}
.label-request {
  background: #f2e8ff;
  color: #6b32a0;
}
.label-task {
  background: #e9f4ef;
  color: #256044;
}
.priority-low {
  background: #eef1ef;
  color: #5f6864;
}
.priority-medium {
  background: #fff1d8;
  color: #855300;
}
.priority-high {
  background: #ffe6d8;
  color: #a04614;
}
.priority-urgent {
  background: #fee0df;
  color: #a82119;
}
.issue-detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
}
.issue-detail-grid > .card {
  padding: 21px;
}
.side-definition {
  margin: 0;
}
.side-definition > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.side-definition dt {
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
}
.side-definition dd {
  margin: 2px 0 0;
}
.move-form {
  margin-top: 18px;
}
.move-form label {
  font-size: 12px;
  font-weight: 800;
}
.board-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.board-toolbar h2 {
  margin: 0;
}
.board-toolbar p {
  margin: 2px 0;
  color: var(--muted);
}
.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.kanban-column {
  background: #e9eeeb;
  border-radius: 12px;
  padding: 10px;
  min-height: 450px;
}
.kanban-column header {
  display: flex;
  justify-content: space-between;
  padding: 3px 4px 10px;
}
.kanban-column header span {
  background: #d5ddd9;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
}
.kanban-cards {
  display: grid;
  gap: 9px;
}
.kanban-card {
  background: #fff;
  border: 1px solid #dbe2de;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}
.kanban-card h3 {
  font-size: 14px;
  margin: 8px 0 4px;
}
.kanban-card p,
.kanban-card small {
  color: var(--muted);
  font-size: 11px;
}
.kanban-card form {
  margin-top: 8px;
}
.kanban-card select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px;
  font-size: 11px;
}
.kanban-empty {
  text-align: center;
  color: #88928d;
  font-size: 12px;
  padding: 18px;
}
.actions-intro {
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.actions-robot {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
}
.actions-robot .icon {
  width: 29px;
  height: 29px;
}
.actions-intro h2 {
  margin: 0;
}
.actions-intro p {
  margin: 4px 0;
}
.table-head.runs,
.run-row {
  display: grid;
  grid-template-columns: 90px 1.1fr 0.7fr 1.2fr 140px;
  align-items: center;
}
.run-row {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.run-row b,
.run-row code {
  display: block;
}
.run-row time {
  color: var(--muted);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.settings-grid > .card {
  padding: 22px;
}
.settings-grid h2 {
  margin-top: 0;
}
.settings-grid h2.mt {
  margin-top: 26px;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.check-line input {
  width: 18px;
  height: 18px;
}
.share-url {
  margin-top: 18px;
}
.share-url label {
  display: block;
  font-size: 12px;
  font-weight: 800;
}
.share-url input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  margin: 5px 0;
}
.danger-zone {
  margin-top: 18px;
  padding: 22px;
  border-color: #e7beba;
}
.member-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.member-head,
.member-row {
  display: grid;
  grid-template-columns: 1fr 80px 150px;
  align-items: center;
  padding: 10px 12px;
}
.member-head {
  background: #f5f7f6;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.member-row {
  border-top: 1px solid var(--line);
}
.member-row b,
.member-row small {
  display: block;
}
.member-row small {
  color: var(--muted);
}
.switch input {
  display: none;
}
.switch span {
  display: block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #c9d2cd;
  position: relative;
}
.switch span:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: 0.2s;
}
.switch input:checked + span {
  background: var(--green);
}
.switch input:checked + span:after {
  left: 19px;
}
.member-row select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px;
}
.user-head,
.user-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.45fr 0.5fr 150px;
  align-items: center;
  padding: 12px 15px;
}
.user-head {
  background: #f5f7f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.user-row {
  border-top: 1px solid var(--line);
}
.user-row b,
.user-row small {
  display: block;
}
.user-row small {
  color: var(--muted);
}
.logout-box {
  margin-top: 20px;
}
.auth-body {
  background: radial-gradient(
    circle at 15% 10%,
    #284b40 0,
    #111513 45%,
    #0a0c0b 100%
  );
  min-height: 100vh;
}
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.auth-card {
  width: min(100%, 460px);
  background: #fff;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 22px;
}
.auth-card h1 {
  font-size: 40px;
  margin: 4px 0;
}
.auth-card > p {
  color: var(--muted);
  margin-bottom: 22px;
}
.public-body {
  background: #f3f5f3;
}
.public-header {
  background: var(--dark);
  color: #fff;
  padding: 30px max(20px, calc((100vw - 900px) / 2));
  display: flex;
  gap: 16px;
  align-items: center;
}
.public-header small {
  color: #9caaa3;
  letter-spacing: 0.12em;
}
.public-header h1 {
  margin: 2px 0;
}
.public-header p {
  margin: 0;
  color: #bdc8c2;
}
.public-main {
  max-width: 900px;
  margin: 22px auto;
  padding: 0 16px;
  display: grid;
  gap: 12px;
}
.public-recipe {
  overflow: hidden;
}
.public-recipe summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  cursor: pointer;
}
.public-recipe summary::-webkit-details-marker {
  display: none;
}
.public-recipe summary span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.public-recipe summary h2 {
  margin: 3px 0;
}
.public-recipe summary p {
  margin: 0;
  color: var(--muted);
}
.public-recipe-body {
  border-top: 1px solid var(--line);
  padding: 20px;
}
.public-recipe-body section + section {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.public-footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font-size: 12px;
}
.bottom-nav {
  display: none;
}
@media (max-width: 1050px) {
  :root {
    --sidebar: 210px;
  }
  .main-content {
    padding: 28px 22px 70px;
  }
  .repo-header {
    margin: -28px -22px 22px;
    padding: 25px 22px 0;
  }
  .ingredient-fields {
    grid-template-columns: 1.4fr 0.55fr 0.45fr 0.65fr;
  }
  .ingredient-fields input:nth-child(n + 5) {
    grid-column: auto;
  }
  .recipe-layout {
    grid-template-columns: 1fr;
  }
  .recipe-side {
    grid-template-columns: repeat(2, 1fr);
  }
  .kanban {
    grid-template-columns: repeat(5, 260px);
  }
}
@media (max-width: 760px) {
  body {
    padding-bottom: 68px;
  }
  .sidebar {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 14px;
  }
  .mobile-brand {
    display: flex;
  }
  .mobile-brand .brand-symbol {
    width: 31px;
    height: 31px;
    border-color: var(--line);
    font-size: 12px;
  }
  .mobile-brand b {
    font-size: 15px;
  }
  .desktop-only {
    display: none;
  }
  .main-content {
    padding: 22px 14px 45px;
  }
  .bottom-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 2px 6px;
    color: #78827d;
    font-size: 10px;
  }
  .bottom-nav a.active {
    color: var(--green);
  }
  .bottom-nav .icon {
    width: 21px;
    height: 21px;
  }
  .page-head {
    flex-direction: column;
  }
  .page-head h1 {
    font-size: 32px;
  }
  .page-head > .btn,
  .page-head .head-actions {
    width: 100%;
  }
  .page-head > .btn {
    justify-content: center;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-card {
    padding: 15px;
  }
  .metric-card b {
    font-size: 30px;
  }
  .repo-grid {
    grid-template-columns: 1fr;
  }
  .activity-item {
    grid-template-columns: 10px 1fr;
  }
  .activity-item time {
    display: none;
  }
  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .form-card {
    padding: 18px;
  }
  .repo-header {
    margin: -22px -14px 18px;
    padding: 20px 14px 0;
  }
  .repo-title-row {
    flex-direction: column;
  }
  .repo-title-row > .btn {
    width: 100%;
  }
  .repo-title-row h1 {
    font-size: 29px;
  }
  .repo-controls {
    justify-content: space-between;
  }
  .repo-tabs {
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 8px;
  }
  .repo-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .repo-summary > div:nth-child(2) {
    border-right: 0;
  }
  .repo-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .toolbar-right {
    width: 100%;
  }
  .toolbar-right .btn {
    flex: 1;
  }
  .table-head {
    display: none;
  }
  .recipe-row {
    grid-template-columns: 1fr auto;
    padding: 12px;
  }
  .recipe-row > .commit-cell {
    grid-column: 1/2;
    margin-left: 60px;
  }
  .recipe-row > div:last-child {
    grid-column: 2;
    grid-row: 1;
  }
  .recipe-title-cell img,
  .recipe-placeholder {
    width: 49px;
    height: 49px;
  }
  .editor-section.card,
  .component-card {
    padding: 16px;
  }
  .ingredient-row,
  .step-row {
    position: relative;
    padding-right: 25px;
  }
  .ingredient-fields,
  .step-fields {
    grid-template-columns: repeat(2, 1fr);
  }
  .ingredient-fields input:first-child,
  .step-fields textarea,
  .step-fields input:last-child {
    grid-column: span 2;
  }
  .row-remove {
    position: absolute;
    right: 0;
    top: 5px;
  }
  .drag-handle {
    display: none;
  }
  .sticky-save {
    bottom: 76px;
  }
  .sticky-save > div {
    display: none;
  }
  .sticky-save .btn {
    width: 100%;
  }
  .recipe-heading {
    align-items: flex-start;
  }
  .recipe-hero-image {
    width: 82px;
    height: 82px;
  }
  .commit-banner {
    align-items: flex-start;
  }
  .commit-banner > div {
    display: block;
  }
  .commit-banner b,
  .commit-banner small {
    display: block;
    margin-top: 3px;
  }
  .definition-grid {
    grid-template-columns: 1fr;
  }
  .definition-grid > div {
    border-bottom: 1px solid var(--line) !important;
  }
  .definition-grid > div:last-child {
    border-bottom: 0 !important;
  }
  .data-head,
  .data-row {
    grid-template-columns: 1.3fr 0.7fr;
  }
  .data-head span:nth-child(n + 3),
  .data-row > span:nth-child(n + 3) {
    display: none;
  }
  .component-notes {
    grid-template-columns: 1fr;
  }
  .recipe-side {
    grid-template-columns: 1fr;
  }
  .history-item {
    grid-template-columns: 42px 1fr;
  }
  .history-actions {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 8px;
  }
  .pr-row,
  .issue-row {
    grid-template-columns: 34px 1fr;
  }
  .pr-row time {
    display: none;
  }
  .change-preview > div {
    grid-template-columns: 1fr auto;
  }
  .change-preview code {
    display: none;
  }
  .pr-summary {
    grid-template-columns: 1fr;
  }
  .pr-summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .pr-summary div:last-child {
    border-bottom: 0;
  }
  .diff-values {
    grid-template-columns: 1fr;
  }
  .diff-values > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .inline-comment {
    flex-direction: column;
  }
  .inline-comment button {
    padding: 9px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .comment-form {
    flex-direction: column;
  }
  .merge-box {
    align-items: stretch;
    flex-direction: column;
  }
  .merge-actions {
    display: grid;
  }
  .issue-detail-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .kanban {
    grid-template-columns: repeat(5, 84vw);
  }
  .actions-intro {
    flex-direction: column;
  }
  .table-head.runs {
    display: none;
  }
  .run-row {
    grid-template-columns: 80px 1fr;
    gap: 5px;
    padding: 12px;
  }
  .run-row > *:nth-child(n + 3) {
    grid-column: 2;
  }
  .member-head {
    display: none;
  }
  .member-row {
    grid-template-columns: 1fr 60px;
  }
  .member-row select {
    grid-column: 1/3;
    margin-top: 8px;
  }
  .user-head {
    display: none;
  }
  .user-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .user-row > span:nth-child(2),
  .user-row > span:nth-child(3) {
    display: none;
  }
  .user-row > div:last-child {
    grid-column: 1/3;
  }
  .auth-card {
    padding: 24px;
  }
  .auth-card h1 {
    font-size: 34px;
  }
}

/* CHEFLABOX 2.1 — App UI */
:root {
  --ink: #151715;
  --muted: #737872;
  --line: #e7e8e3;
  --paper: #fff;
  --bg: #f5f5f2;
  --dark: #171917;
  --green: #2e5b4d;
  --green2: #23473d;
  --soft: #f0f2ee;
  --shadow: 0 12px 30px rgba(22, 27, 23, 0.055);
  --radius: 20px;
  --sidebar: 238px;
}
body {
  background: var(--bg);
  letter-spacing: -0.01em;
}
.sidebar {
  background: #fbfbf8;
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 22px 14px;
}
.brand-lockup {
  padding: 3px 8px 28px;
}
.brand-lockup .brand-symbol {
  background: var(--dark);
  color: #fff;
  border: 0;
  border-radius: 12px;
}
.brand-lockup small {
  color: #9a9e98;
}
.side-nav {
  gap: 3px;
}
.side-nav a {
  color: #6f756f;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 700;
}
.side-nav a:hover {
  background: #f0f1ed;
  color: var(--ink);
}
.side-nav a.active {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.11);
}
.side-nav-secondary {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.sidebar-user {
  margin-top: 14px;
  border: 0;
  background: #f0f1ed;
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  align-items: center;
  gap: 9px;
}
.sidebar-user .avatar,
.top-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dfe7e1;
  color: #24483d;
  font-weight: 900;
}
.sidebar-user small {
  color: #929892;
  word-break: normal;
}
.sidebar-user > .icon {
  color: #9ba09b;
}
.topbar {
  height: 68px;
  background: rgba(245, 245, 242, 0.88);
  border-bottom: 0;
  padding: 0 30px;
  gap: 22px;
}
.global-search {
  width: min(520px, 50vw);
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 13px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 9px;
  box-shadow: 0 4px 14px rgba(20, 24, 21, 0.03);
}
.global-search .icon {
  width: 18px;
  color: #8b918b;
}
.global-search input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
}
.global-search kbd {
  border: 1px solid #dddeda;
  background: #f6f6f3;
  border-radius: 6px;
  padding: 2px 6px;
  color: #8c918c;
  font-size: 11px;
}
.top-actions .icon-btn {
  background: #fff;
  border: 1px solid var(--line);
}
.top-avatar {
  width: 40px;
  height: 40px;
}
.main-content {
  max-width: 1440px;
  padding: 30px 34px 80px;
}
.card {
  box-shadow: var(--shadow);
  border-color: var(--line);
}
.btn {
  border-radius: 13px;
  padding: 11px 16px;
}
.btn-dark {
  background: var(--dark);
  color: #fff;
}
.page-head.app-page-head h1 {
  font-size: clamp(34px, 5vw, 58px);
}
.dashboard-hero {
  min-height: 250px;
  background: linear-gradient(135deg, #191c19 0%, #27372f 68%, #345949 100%);
  border-radius: 28px;
  padding: 36px 38px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 50px rgba(16, 25, 20, 0.14);
}
.dashboard-hero:after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  right: -80px;
  top: -170px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 0 0 55px rgba(255, 255, 255, 0.025),
    0 0 0 110px rgba(255, 255, 255, 0.02);
}
.dashboard-hero > div,
.hero-create {
  position: relative;
  z-index: 1;
}
.dashboard-hero .eyebrow {
  color: #bcd1c7;
}
.dashboard-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 9px 0 12px;
}
.dashboard-hero p {
  color: #cbd4cf;
  margin: 0;
}
.hero-create {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 14px 17px;
  min-width: 205px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.16);
}
.hero-create > span {
  width: 42px;
  height: 42px;
  background: var(--dark);
  color: #fff;
  border-radius: 13px;
  display: grid;
  place-items: center;
}
.hero-create b,
.hero-create small {
  display: block;
}
.hero-create small {
  color: var(--muted);
}
.insight-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 15px;
}
.insight-strip a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.insight-strip a > span {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f0f2ee;
  display: grid;
  place-items: center;
  color: var(--green);
}
.insight-strip b,
.insight-strip small {
  display: block;
}
.insight-strip b {
  font-size: 24px;
  line-height: 1;
}
.insight-strip small {
  color: var(--muted);
  margin-top: 4px;
}
.compact-section {
  margin-top: 28px;
}
.store-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(145px, 1fr);
  gap: 11px;
  overflow-x: auto;
  padding: 2px 2px 8px;
}
.store-tile {
  border-radius: 18px;
  padding: 16px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: #fff;
}
.store-tile > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.65);
  font-size: 18px;
  font-weight: 900;
}
.store-tile b,
.store-tile small {
  display: block;
}
.store-tile small {
  color: var(--muted);
}
.store-tile.all {
  background: #1b1d1b;
  color: #fff;
  border-color: #1b1d1b;
}
.store-tile.all small {
  color: #aeb5af;
}
.token-stone {
  --token: #e7e8e3;
  --token-text: #4b504b;
}
.token-sage {
  --token: #dce9df;
  --token-text: #31563f;
}
.token-amber {
  --token: #f7e8c8;
  --token-text: #755415;
}
.token-sky {
  --token: #dcebf3;
  --token-text: #315c70;
}
.token-blue {
  --token: #dbe4f7;
  --token-text: #37558a;
}
.token-rose {
  --token: #f2dfe1;
  --token-text: #7b4148;
}
.token-sand {
  --token: #ece4d7;
  --token-text: #6b5940;
}
.token-violet {
  --token: #e8e0f2;
  --token-text: #604678;
}
.token-aqua {
  --token: #d9ece9;
  --token-text: #2f6760;
}
.store-tile[class*="token-"],
.filter-chip[class*="token-"] {
  background: var(--token);
  color: var(--token-text);
  border-color: transparent;
}
.taxonomy-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--token, #d8dad5);
  display: inline-block;
}
.recipe-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.library-recipe-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.22s ease;
  min-width: 0;
}
.library-recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(22, 27, 23, 0.09);
}
.recipe-cover {
  aspect-ratio: 16/10;
  background: #eceee9;
  position: relative;
  overflow: hidden;
}
.recipe-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.recipe-cover-placeholder {
  height: 100%;
  background: linear-gradient(135deg, #e9ebe6, #dfe4df);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #6b746e;
}
.recipe-cover-placeholder span {
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: 1;
}
.recipe-cover-placeholder small {
  letter-spacing: 0.18em;
  font-size: 9px;
  margin-top: 8px;
}
.status-badge.floating {
  position: absolute;
  top: 12px;
  right: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.library-recipe-body {
  padding: 16px;
}
.recipe-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  min-width: 0;
}
.library-recipe-card h3 {
  font-size: 20px;
  margin: 8px 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.library-recipe-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recipe-store-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--token, #eee);
  color: var(--token-text, #555);
  font-size: 10px;
  font-weight: 800;
}
.store-chip .icon {
  width: 12px;
  height: 12px;
}
.recipe-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 13px;
  color: #8b908b;
  font-size: 11px;
}
.review-queue {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.review-card,
.quiet-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 14px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
}
.review-icon,
.quiet-card > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #edf2ee;
  color: var(--green);
  display: grid;
  place-items: center;
}
.review-card b,
.review-card small,
.quiet-card b,
.quiet-card small {
  display: block;
}
.review-card small,
.quiet-card small {
  color: var(--muted);
}
.quiet-card {
  grid-template-columns: 42px 1fr;
  grid-column: 1/-1;
}
.library-filter {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.6fr) repeat(3, minmax(150px, 0.7fr))
    auto;
  gap: 9px;
  padding: 10px;
  margin-bottom: 14px;
  box-shadow: none;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf9;
}
.filter-search input {
  border: 0;
  background: transparent;
  outline: 0;
  min-width: 0;
  flex: 1;
}
.library-filter select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}
.filter-scroller {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 3px 0 10px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.filter-chip span {
  opacity: 0.7;
}
.library-result-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0 13px;
}
.library-result-head span {
  color: var(--muted);
  font-size: 13px;
}
.quick-add-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.quick-add-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: 48px 1fr 22px;
  align-items: center;
  gap: 13px;
  box-shadow: var(--shadow);
}
.quick-add-card > .icon:last-child {
  transform: rotate(180deg);
  color: #a1a6a1;
}
.quick-add-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #edf1ed;
  color: var(--green);
  display: grid;
  place-items: center;
}
.quick-add-card b {
  font-size: 17px;
}
.quick-add-card p {
  margin: 3px 0;
  color: var(--muted);
}
.quick-add-card small {
  color: #929792;
}
.segmented-tabs {
  display: inline-flex;
  background: #e9ebe6;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.segmented-tabs a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 11px;
  color: #747a74;
  font-weight: 800;
}
.segmented-tabs a.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
.management-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: start;
}
.management-list {
  display: grid;
  gap: 9px;
}
.management-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 14px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
}
.management-card.is-inactive {
  opacity: 0.5;
}
.management-color {
  width: 12px;
  height: 44px;
  border-radius: 999px;
  background: var(--token, #ddd);
}
.store-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--token, #ddd);
  color: var(--token-text, #555);
  font-weight: 900;
}
.management-card b,
.management-card small {
  display: block;
}
.management-card small {
  color: var(--muted);
}
.management-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.management-actions {
  display: flex;
  gap: 4px;
}
.management-form {
  padding: 21px;
  position: sticky;
  top: 88px;
}
.management-form h2 {
  margin-top: 0;
}
.store-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.store-select-chip input {
  display: none;
}
.store-select-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f3f4f1;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}
.store-select-chip input:checked + span {
  background: var(--token, #e6e7e3);
  color: var(--token-text, #333);
  border-color: transparent;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.06);
}
.store-select-chip .icon {
  width: 15px;
}
.repo-workbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.repo-workbar-main {
  display: flex;
  align-items: center;
  gap: 9px;
}
.inline-filter {
  display: flex;
  gap: 7px;
}
.inline-filter select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 8px 28px 8px 10px;
}
.repo-recipe-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.recipe-page-head {
  margin-bottom: 16px;
}
.recipe-store-row.detail {
  margin-top: 11px;
}
.recipe-heading {
  gap: 18px;
}
.recipe-heading > div:last-child {
  min-width: 0;
}
.recipe-hero-image {
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
@media (max-width: 1180px) {
  .recipe-gallery,
  .repo-recipe-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-filter {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .library-filter .filter-search {
    grid-column: span 2;
  }
  .library-filter .btn {
    grid-column: span 1;
  }
  .management-layout {
    grid-template-columns: 1fr;
  }
  .management-form {
    position: static;
  }
  .insight-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  body {
    padding-bottom: 86px;
  }
  .topbar {
    height: 62px;
    padding: 0 13px;
    background: rgba(245, 245, 242, 0.94);
  }
  .global-search {
    display: none;
  }
  .top-actions .icon-btn {
    display: none;
  }
  .top-avatar {
    width: 34px;
    height: 34px;
  }
  .main-content {
    padding: 16px 13px 42px;
  }
  .dashboard-hero {
    min-height: 315px;
    padding: 25px 22px;
    border-radius: 24px;
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-hero h1 {
    font-size: 39px;
  }
  .hero-create {
    margin-top: 25px;
    min-width: 0;
  }
  .insight-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .insight-strip a {
    padding: 13px;
  }
  .section {
    margin-top: 28px;
  }
  .section-head {
    align-items: flex-start;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .store-carousel {
    grid-auto-columns: 140px;
  }
  .recipe-gallery,
  .repo-recipe-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .recipe-cover {
    aspect-ratio: 16/9;
  }
  .review-queue {
    grid-template-columns: 1fr;
  }
  .library-filter {
    grid-template-columns: 1fr;
    padding: 9px;
  }
  .library-filter .filter-search,
  .library-filter .btn {
    grid-column: auto;
  }
  .app-page-head > .btn {
    width: 100%;
  }
  .quick-add-grid {
    grid-template-columns: 1fr;
  }
  .management-card {
    grid-template-columns: 42px 1fr;
  }
  .management-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .repo-workbar {
    align-items: stretch;
    flex-direction: column;
  }
  .repo-workbar-main {
    align-items: stretch;
    flex-direction: column;
  }
  .inline-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .repo-workbar .toolbar-right .btn {
    flex: 1;
  }
  .recipe-heading {
    flex-direction: column;
  }
  .recipe-heading > div:first-child {
    width: 100%;
  }
  .recipe-hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
  }
  .recipe-hero-image.recipe-cover-placeholder {
    height: auto;
  }
  .recipe-store-row.detail {
    margin-top: 8px;
  }
  .bottom-nav {
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 7px calc(5px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.05);
  }
  .bottom-nav a {
    padding: 5px 2px;
  }
  .bottom-nav .mobile-create {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    background: var(--dark);
    color: #fff;
    align-self: end;
    justify-self: center;
    margin-top: -24px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
  }
  .bottom-nav .mobile-create .icon {
    width: 25px;
    height: 25px;
  }
  .repo-header {
    border-radius: 0 0 22px 22px;
  }
  .segmented-tabs {
    display: flex;
  }
  .segmented-tabs a {
    flex: 1;
    justify-content: center;
  }
  .management-layout {
    gap: 12px;
  }
}

/* CHEFLABOX 2.2 — Brand system: stainless white / graphite / kitchen grey */
:root {
  --ink: #111111;
  --muted: #6f6f6b;
  --line: #dededb;
  --line-strong: #c8c8c4;
  --paper: #ffffff;
  --bg: #f3f3f1;
  --dark: #111111;
  --green: #111111;
  --green2: #2a2a2a;
  --soft: #eeeeeb;
  --blue: #3f3f3f;
  --orange: #5e5e5e;
  --red: #a42b2b;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.045);
  --radius: 8px;
  --sidebar: 232px;
}
html {
  font-size: 14px;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Segoe UI",
    "Hiragino Sans",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  line-height: 1.55;
  letter-spacing: 0.005em;
}
.icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}
.sidebar {
  width: var(--sidebar);
  background: #fff;
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 20px 14px 14px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 8px 27px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-copy {
  min-width: 0;
}
.brand-copy b,
.mobile-brand b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.31em;
  white-space: nowrap;
}
.brand-copy small,
.mobile-brand small {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.17em;
  color: #777;
}
.side-nav {
  gap: 2px;
}
.side-nav a {
  color: #60605d;
  border-radius: 5px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.side-nav a:hover {
  background: #f1f1ef;
  color: #111;
}
.side-nav a.active {
  background: #111;
  color: #fff;
  box-shadow: none;
}
.side-nav-secondary {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}
.sidebar-user {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #fafaf8;
  border-radius: 6px;
  padding: 9px;
  display: grid;
  grid-template-columns: 32px 1fr 16px;
  align-items: center;
  gap: 8px;
}
.sidebar-user .avatar,
.top-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #222;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.sidebar-user b {
  font-size: 11px;
  font-weight: 650;
}
.sidebar-user small {
  font-size: 9px;
  color: #777;
  word-break: normal;
}
.sidebar-user > .icon {
  color: #999;
}
.shell {
  margin-left: var(--sidebar);
}
.topbar {
  height: 58px;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--line);
  padding: 0 26px;
  backdrop-filter: blur(16px);
}
.global-search {
  width: min(500px, 50vw);
  height: 34px;
  border: 1px solid var(--line);
  background: #f8f8f6;
  border-radius: 5px;
  padding: 0 10px;
  box-shadow: none;
}
.global-search input {
  font-size: 12px;
}
.global-search kbd {
  font-size: 9px;
  border-radius: 3px;
  background: #fff;
  border-color: var(--line);
}
.top-actions {
  gap: 8px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}
.icon-btn:hover {
  background: #efefec;
}
.top-avatar {
  width: 34px;
  height: 34px;
}
.main-content {
  max-width: 1420px;
  padding: 26px 30px 72px;
}
.page-head {
  margin-bottom: 22px;
  gap: 18px;
}
.page-head.compact {
  margin-bottom: 18px;
}
.page-head h1,
.page-head.app-page-head h1 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 4px 0 5px;
  font-weight: 650;
}
.page-head p {
  font-size: 12px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.2em;
  color: #747470;
}
.back-link {
  font-size: 11px;
}
.section {
  margin-top: 30px;
}
.section-head {
  margin-bottom: 11px;
}
.section-head h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.section-head p,
.section-head > a {
  font-size: 11px;
}
.section-head > a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn {
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.btn-primary,
.btn-dark {
  background: #111;
  color: #fff;
  border-color: #111;
}
.btn-primary:hover,
.btn-dark:hover {
  background: #2a2a2a;
}
.btn-outline {
  border-color: var(--line-strong);
}
.btn-sm {
  padding: 6px 9px;
  font-size: 10px;
}
.btn-danger {
  border-radius: 5px;
}
.pill,
.access-badge,
.branch-label,
.filter-chip,
.status-badge {
  border-radius: 999px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.pill.success,
.status-badge.success {
  background: #171717;
  color: #fff;
}
.status-badge.warning,
.status-badge.pending,
.status-badge.open {
  background: #e8e8e5;
  color: #3f3f3d;
}
.status-badge.info,
.status-badge.approved {
  background: #d7d7d3;
  color: #111;
}
.status-badge.danger,
.status-badge.failed,
.status-badge.changes_requested {
  background: #f4e5e5;
  color: #8b2525;
}
.alert {
  border-radius: 6px;
  font-size: 11px;
}
.alert-success {
  background: #ececea;
  border-color: #c9c9c6;
  color: #222;
}
.alert-info {
  background: #efefed;
  border-color: #d4d4d1;
  color: #333;
}
.alert-warning {
  background: #f1f0ec;
  border-color: #d9d5ca;
  color: #5a5240;
}
.field {
  gap: 5px;
  margin-bottom: 14px;
}
.field label {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.field small {
  font-size: 10px;
}
.field input,
.field select,
.field textarea,
.branch-select select,
.move-form select {
  border-color: var(--line-strong);
  border-radius: 5px;
  padding: 9px 10px;
  font-size: 12px;
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}
.form-card {
  padding: 20px;
}
.form-card h2,
.settings-grid h2 {
  font-size: 16px;
}
.dashboard-hero {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 8px;
  padding: 30px 34px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  box-shadow: none;
}
.dashboard-hero:after {
  content: "";
  position: absolute;
  right: 5%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translateY(-50%);
  background: url("brand/mark-white.svg") center/contain no-repeat;
  opacity: 0.055;
  pointer-events: none;
}
.dashboard-hero > div,
.hero-create {
  position: relative;
  z-index: 1;
}
.dashboard-hero .eyebrow {
  color: #aaa;
}
.dashboard-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 8px 0 10px;
}
.dashboard-hero p {
  font-size: 11px;
  color: #aaa;
  margin: 0;
}
.hero-create {
  min-width: 210px;
  border: 1px solid #3b3b3b;
  background: #1b1b1b;
  border-radius: 6px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.hero-create:hover {
  background: #242424;
}
.hero-create > span {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
}
.hero-create b {
  font-size: 12px;
  font-weight: 600;
}
.hero-create small {
  font-size: 9px;
  color: #aaa;
}
.insight-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}
.insight-strip a {
  border-right: 1px solid var(--line);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.insight-strip a:last-child {
  border-right: 0;
}
.insight-strip a > span {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: #eeeeeb;
  color: #111;
  display: grid;
  place-items: center;
}
.insight-strip b {
  font-size: 20px;
  font-weight: 550;
}
.insight-strip small {
  font-size: 9px;
  color: #777;
  margin-left: 5px;
}
.store-carousel {
  grid-auto-columns: minmax(132px, 1fr);
  gap: 8px;
}
.store-tile {
  border-radius: 6px;
  min-height: 108px;
  padding: 13px;
  background: #fff !important;
  color: #111 !important;
  border: 1px solid var(--line) !important;
}
.store-tile:hover {
  border-color: #777 !important;
}
.store-tile > span {
  width: 31px;
  height: 31px;
  border-radius: 3px;
  background: #e9e9e6 !important;
  color: #111 !important;
  font-size: 12px;
}
.store-tile b {
  font-size: 11px;
  font-weight: 650;
}
.store-tile small {
  font-size: 9px;
  color: #777 !important;
}
.store-tile.all {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}
.store-tile.all > span {
  background: #fff !important;
  color: #111 !important;
}
.token-stone {
  --token: #ededeb;
  --token-text: #4c4c49;
}
.token-sage {
  --token: #e7e7e4;
  --token-text: #3f3f3d;
}
.token-amber {
  --token: #dededb;
  --token-text: #333330;
}
.token-sky {
  --token: #f1f1ef;
  --token-text: #565653;
}
.token-blue {
  --token: #d7d7d3;
  --token-text: #2f2f2c;
}
.token-rose {
  --token: #e3e3df;
  --token-text: #444441;
}
.token-sand {
  --token: #ebebe7;
  --token-text: #4f4f4b;
}
.token-violet {
  --token: #dcdcd8;
  --token-text: #363633;
}
.token-aqua {
  --token: #f0f0ed;
  --token-text: #52524e;
}
.store-tile[class*="token-"],
.filter-chip[class*="token-"] {
  background: #fff;
  color: #333;
  border-color: var(--line);
}
.taxonomy-dot {
  border-radius: 1px;
  background: var(--token, #aaa);
}
.recipe-gallery {
  gap: 12px;
}
.library-recipe-card {
  border-radius: 7px;
  box-shadow: none;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}
.library-recipe-card:hover {
  transform: translateY(-2px);
  border-color: #8b8b87;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.055);
}
.recipe-cover {
  aspect-ratio: 16/10;
  background: #e7e7e4;
}
.recipe-cover-placeholder {
  background: linear-gradient(145deg, #efefed, #dadad6);
  color: #444;
}
.recipe-cover-placeholder span {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 42px;
  font-weight: 250;
}
.recipe-cover-placeholder small {
  font-size: 7px;
  letter-spacing: 0.28em;
}
.status-badge.floating {
  top: 9px;
  right: 9px;
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.library-recipe-body {
  padding: 13px;
}
.recipe-card-meta {
  font-size: 9px;
}
.library-recipe-card h3 {
  font-size: 15px;
  font-weight: 650;
  margin: 7px 0 3px;
}
.library-recipe-card p {
  font-size: 10px;
  margin-bottom: 10px;
}
.store-chip {
  border-radius: 3px;
  padding: 4px 6px;
  background: #eeeeeb !important;
  color: #444 !important;
  font-size: 8.5px;
  font-weight: 650;
}
.recipe-card-footer {
  font-size: 8.5px;
  padding-top: 9px;
  margin-top: 10px;
}
.review-queue {
  gap: 8px;
}
.review-card,
.quiet-card {
  border-radius: 6px;
  padding: 12px;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
}
.review-icon,
.quiet-card > span {
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: #e8e8e5;
  color: #111;
}
.review-card b,
.quiet-card b {
  font-size: 11px;
}
.review-card small,
.quiet-card small {
  font-size: 9px;
}
.repo-card {
  border-radius: 7px;
  padding: 14px;
  box-shadow: none;
}
.repo-card:hover {
  border-color: #777;
  transform: none;
}
.repo-icon,
.quick-add-icon {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: #111;
  color: #fff;
}
.repo-card h3 {
  font-size: 14px;
}
.repo-card p {
  font-size: 10px;
}
.repo-stats {
  font-size: 9px;
}
.repo-header {
  margin: -26px -30px 20px;
  padding: 24px 30px 0;
  background: #fff;
}
.repo-title-row h1 {
  font-size: 27px;
  font-weight: 650;
}
.repo-title-row p {
  font-size: 11px;
}
.breadcrumb {
  font-size: 10px;
}
.breadcrumb a {
  color: #111;
}
.repo-controls {
  margin-top: 15px;
}
.repo-tabs {
  margin-top: 13px;
}
.repo-tabs a {
  padding: 10px 11px;
  font-size: 10px;
}
.repo-tabs a.active {
  border-bottom-color: #111;
}
.repo-summary {
  border-radius: 6px;
}
.repo-summary > div {
  padding: 13px;
}
.repo-summary b {
  font-size: 18px;
}
.repo-summary span {
  font-size: 9px;
}
.library-filter {
  border-radius: 6px;
  padding: 8px;
  gap: 7px;
}
.filter-search,
.library-filter select {
  border-radius: 4px;
  font-size: 11px;
}
.filter-search {
  background: #f8f8f6;
}
.filter-chip {
  padding: 6px 9px;
  background: #fff !important;
  color: #555 !important;
  border: 1px solid var(--line) !important;
}
.filter-chip.active {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
}
.library-result-head {
  font-size: 11px;
}
.quick-add-card {
  border-radius: 7px;
  padding: 14px;
  box-shadow: none;
}
.quick-add-card b {
  font-size: 13px;
}
.quick-add-card p,
.quick-add-card small {
  font-size: 9px;
}
.segmented-tabs {
  border-radius: 5px;
  background: #e7e7e4;
  padding: 3px;
}
.segmented-tabs a {
  border-radius: 3px;
  padding: 7px 12px;
  font-size: 10px;
}
.management-card {
  border-radius: 6px;
  padding: 11px;
  grid-template-columns: 36px 1fr auto;
}
.store-avatar {
  width: 36px;
  height: 36px;
  border-radius: 3px;
  background: var(--token, #ddd);
  font-size: 10px;
}
.management-card b {
  font-size: 11px;
}
.management-card small,
.management-card p {
  font-size: 9px;
}
.management-form {
  padding: 17px;
}
.store-select-chip span {
  border-radius: 4px;
  padding: 7px 9px;
  font-size: 9px;
}
.auth-body {
  background: #111;
}
.auth-wrap {
  padding: 20px;
}
.auth-card {
  width: min(100%, 430px);
  border-radius: 7px;
  padding: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.auth-brand img {
  width: 42px;
  height: 42px;
}
.auth-brand b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.31em;
}
.auth-brand small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  color: #777;
  letter-spacing: 0.17em;
}
.auth-card h1 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.35;
  margin: 6px 0;
}
.auth-card > p {
  font-size: 11px;
  margin-bottom: 20px;
}
.auth-card .eyebrow {
  font-size: 8px;
}
.public-body {
  background: #f3f3f1;
}
.public-header {
  background: #111;
  padding: 25px max(20px, calc((100vw - 900px) / 2));
  gap: 14px;
}
.public-brand-mark {
  width: 44px;
  height: 44px;
}
.public-header small {
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #aaa;
}
.public-header h1 {
  font-size: 22px;
  font-weight: 550;
}
.public-header p {
  font-size: 10px;
  color: #999;
}
.public-recipe {
  border-radius: 6px;
}
.public-recipe summary {
  padding: 16px;
}
.public-recipe summary span {
  color: #666;
  font-size: 9px;
}
.public-recipe summary h2 {
  font-size: 17px;
}
.public-recipe summary p {
  font-size: 10px;
}
.public-footer {
  font-size: 9px;
  letter-spacing: 0.15em;
}

@media (max-width: 760px) {
  html {
    font-size: 14px;
  }
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }
  body {
    padding-bottom: 72px;
  }
  .sidebar {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 54px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.96);
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .mobile-brand .brand-mark {
    width: 28px;
    height: 28px;
  }
  .mobile-brand b {
    font-size: 10px;
    letter-spacing: 0.25em;
  }
  .mobile-brand small {
    font-size: 6px;
    margin-top: 1px;
  }
  .top-actions .icon-btn {
    display: none;
  }
  .top-avatar {
    width: 30px;
    height: 30px;
    font-size: 9px;
  }
  .main-content {
    padding: 15px 12px 38px;
  }
  .page-head {
    gap: 10px;
    margin-bottom: 16px;
  }
  .page-head h1,
  .page-head.app-page-head h1 {
    font-size: 25px;
  }
  .page-head p {
    font-size: 10px;
  }
  .page-head > .btn {
    width: 100%;
  }
  .dashboard-hero {
    min-height: 236px;
    padding: 22px 19px;
    border-radius: 7px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
  }
  .dashboard-hero:after {
    width: 150px;
    height: 150px;
    right: -18px;
    top: 32%;
    opacity: 0.045;
  }
  .dashboard-hero h1 {
    font-size: 31px;
    line-height: 1.28;
  }
  .dashboard-hero p {
    font-size: 10px;
    max-width: 280px;
  }
  .hero-create {
    min-width: 0;
    margin-top: 18px;
    padding: 11px;
  }
  .insight-strip {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 6px;
  }
  .insight-strip a {
    padding: 11px 12px;
  }
  .insight-strip a:nth-child(2) {
    border-right: 0;
  }
  .insight-strip a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .insight-strip b {
    font-size: 17px;
  }
  .insight-strip small {
    font-size: 8px;
  }
  .section {
    margin-top: 25px;
  }
  .section-head h2 {
    font-size: 15px;
  }
  .store-carousel {
    grid-auto-columns: 126px;
  }
  .store-tile {
    min-height: 96px;
  }
  .recipe-gallery,
  .repo-recipe-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .recipe-cover {
    aspect-ratio: 16/9;
  }
  .library-recipe-card h3 {
    font-size: 15px;
  }
  .library-filter {
    grid-template-columns: 1fr;
    padding: 7px;
  }
  .library-filter .filter-search,
  .library-filter .btn {
    grid-column: auto;
  }
  .quick-add-grid {
    grid-template-columns: 1fr;
  }
  .management-layout {
    grid-template-columns: 1fr;
  }
  .management-form {
    position: static;
  }
  .repo-header {
    margin: -15px -12px 17px;
    padding: 18px 12px 0;
    border-radius: 0;
  }
  .repo-title-row {
    flex-direction: column;
  }
  .repo-title-row > .btn {
    width: 100%;
  }
  .repo-title-row h1 {
    font-size: 23px;
  }
  .repo-tabs {
    margin-left: -12px;
    margin-right: -12px;
    padding: 0 6px;
  }
  .repo-tabs a {
    font-size: 9px;
    padding: 9px;
  }
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 5px 6px calc(4px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: blur(14px);
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 1px;
    color: #777;
    font-size: 8px;
  }
  .bottom-nav a.active {
    color: #111;
  }
  .bottom-nav .icon {
    width: 18px;
    height: 18px;
  }
  .bottom-nav .mobile-create {
    width: 43px;
    height: 43px;
    border-radius: 5px;
    background: #111;
    color: #fff;
    align-self: end;
    justify-self: center;
    margin-top: -18px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  }
  .bottom-nav .mobile-create .icon {
    width: 21px;
    height: 21px;
  }
  .auth-card {
    padding: 23px;
  }
  .auth-card h1 {
    font-size: 22px;
  }
  .auth-brand img {
    width: 38px;
    height: 38px;
  }
  .auth-brand b {
    font-size: 11px;
  }
}
.auth-brand-lockup {
  display: block;
  padding-bottom: 18px;
}
.auth-brand-lockup img {
  width: min(100%, 310px);
  height: auto;
  max-height: none;
  object-fit: contain;
}
.public-brand-mark {
  object-fit: contain;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.field-label-row label {
  margin: 0;
}
.inline-add-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-add-link .icon {
  width: 14px;
  height: 14px;
}
.btn-danger {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}
.btn-danger:hover {
  background: #2b2b2b;
}
.danger-zone {
  border-color: #a9a9a5;
  background: #fafaf8;
}
.danger-zone > p {
  font-size: 10px;
  color: #666;
}
.danger-disclosure {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.danger-disclosure summary {
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  color: #333;
}
.danger-disclosure form {
  margin-top: 12px;
}
.danger-disclosure .field {
  margin-bottom: 10px;
}
#store-form {
  scroll-margin-top: 84px;
}

/* v2.3 usability */
.store-context-switch {
  margin-right: 12px;
}
.store-context-switch label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #f7f7f5;
  border-radius: 5px;
  padding: 5px 8px;
}
.store-context-switch select {
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  min-width: 110px;
  outline: 0;
}
.store-context-switch .icon {
  width: 15px;
  height: 15px;
}
.favorite-mark {
  position: absolute;
  left: 9px;
  top: 9px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.88);
  color: #fff;
  border-radius: 4px;
}
.favorite-mark .icon {
  width: 15px;
  height: 15px;
}
.compact-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.store-tile-form {
  display: contents;
}
.store-tile {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.store-tile.selected {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.favorite-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 700;
  background: #fff;
}
.favorite-filter .icon {
  width: 14px;
  height: 14px;
}
.favorite-filter input {
  width: auto;
}
.draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  margin-bottom: 12px;
  border-color: #aaa;
  background: #fafafa;
}
.draft-banner b,
.draft-banner small {
  display: block;
}
.draft-banner b {
  font-size: 11px;
}
.draft-banner small {
  font-size: 9px;
  color: #777;
  margin-top: 2px;
}
.editor-stepper {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #d8d8d5;
  border: 1px solid #d8d8d5;
  border-radius: 6px;
  overflow: hidden;
  margin: 0 0 14px;
}
.editor-stepper button {
  border: 0;
  background: #f4f4f1;
  color: #777;
  padding: 10px 8px;
  font-size: 10px;
  font-weight: 700;
}
.editor-stepper button span {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #ddd;
  color: #555;
  margin-right: 5px;
}
.editor-stepper button.active {
  background: #111;
  color: #fff;
}
.editor-stepper button.active span {
  background: #fff;
  color: #111;
}
.recipe-editor.is-stepped [data-editor-panel] {
  display: none;
}
.recipe-editor.is-stepped [data-editor-panel].active {
  display: block;
}
.is-hidden {
  display: none !important;
}
.component-library-bar {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 260px) auto auto;
  align-items: end;
  gap: 9px;
  padding: 12px;
  margin-bottom: 12px;
}
.component-library-bar b,
.component-library-bar small {
  display: block;
}
.component-library-bar b {
  font-size: 11px;
}
.component-library-bar small {
  font-size: 9px;
  color: #777;
  margin-top: 2px;
}
.component-library-bar select {
  height: 38px;
}
.save-summary {
  box-shadow: none;
  margin-top: 14px;
}
.save-summary > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.save-summary > div:last-child {
  border-bottom: 0;
}
.sticky-save {
  grid-template-columns: auto 1fr auto auto;
}
.component-save-template {
  margin-left: auto;
}
.component-save-template summary {
  cursor: pointer;
  font-size: 9px;
  color: #555;
}
.component-save-template form {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}
.component-save-template input {
  min-width: 150px;
}
.view-mode-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}
.view-mode-switch a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 700;
}
.view-mode-switch a.active {
  background: #111;
  color: #fff;
}
.view-mode-switch .icon {
  width: 14px;
  height: 14px;
}
.kitchen-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
  padding: 10px 0;
}
.kitchen-toolbar > div span {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #777;
}
.kitchen-toolbar h1 {
  font-size: 22px;
  margin: 2px 0 0;
}
.kitchen-scale {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  margin-bottom: 14px;
}
.kitchen-scale label {
  font-size: 11px;
  font-weight: 700;
}
.kitchen-scale input {
  width: 100px;
  text-align: center;
  font-size: 18px !important;
  font-weight: 700;
}
.kitchen-scale b {
  font-size: 12px;
}
.kitchen-components {
  display: grid;
  gap: 14px;
}
.kitchen-component {
  overflow: hidden;
}
.kitchen-component > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #111;
  color: #fff;
}
.kitchen-component > header > span {
  font-size: 11px;
  color: #aaa;
}
.kitchen-component h2 {
  font-size: 18px;
  margin: 0;
}
.kitchen-component header small {
  font-size: 9px;
  color: #aaa;
}
.kitchen-ingredients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.kitchen-ingredients > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.kitchen-ingredients > div:nth-child(2n) {
  border-right: 0;
}
.kitchen-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.kitchen-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
.kitchen-steps label {
  display: grid;
  place-items: start center;
}
.kitchen-steps label input {
  width: 25px;
  height: 25px;
}
.kitchen-steps label span {
  margin-top: 5px;
  font-size: 10px;
  color: #777;
}
.kitchen-steps li:has(input:checked) > div {
  opacity: 0.38;
}
.kitchen-steps h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.kitchen-steps p {
  font-size: 13px;
  margin: 0 0 8px;
  white-space: pre-wrap;
}
.kitchen-step-meta {
  display: flex;
  gap: 7px;
  align-items: center;
}
.kitchen-step-meta em,
.kitchen-step-meta button {
  border: 1px solid var(--line);
  background: #f5f5f2;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 10px;
  font-style: normal;
}
.kitchen-step-meta button {
  display: flex;
  align-items: center;
  gap: 5px;
}
.kitchen-step-meta .icon {
  width: 14px;
  height: 14px;
}
.kitchen-steps strong {
  display: block;
  margin-top: 8px;
  padding: 8px;
  background: #efefec;
  font-size: 10px;
}
.kitchen-component > footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  background: #f4f4f1;
  font-size: 10px;
}
.kitchen-timer-panel {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 90;
  background: #111;
  color: #fff;
  border-radius: 7px;
  padding: 14px 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  min-width: 150px;
  text-align: center;
}
.kitchen-timer-panel b {
  display: block;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}
.kitchen-timer-panel button {
  border: 0;
  background: #fff;
  color: #111;
  border-radius: 4px;
  padding: 5px 12px;
  margin-top: 7px;
  font-size: 10px;
}
.kitchen-timer-panel[hidden] {
  display: none;
}
.component-template-library {
  display: grid;
  gap: 9px;
}
.template-library-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px;
}
.template-library-card > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.template-icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
}
.template-library-card h2 {
  font-size: 13px;
  margin: 0;
}
.template-library-card p,
.template-library-card small {
  display: block;
  font-size: 9px;
  color: #777;
  margin: 2px 0 0;
}
.trash-list {
  display: grid;
  gap: 10px;
}
.trash-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}
.trash-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}
.trash-icon {
  width: 40px;
  height: 40px;
  background: #ededeb;
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.trash-card h2 {
  font-size: 14px;
  margin: 0;
}
.trash-card p,
.trash-card small {
  font-size: 9px;
  color: #777;
  margin: 2px 0;
}
.trash-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trash-actions details {
  position: relative;
}
.trash-delete-form {
  position: absolute;
  right: 0;
  top: 42px;
  width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
  z-index: 10;
}
.trash-delete-form label {
  font-size: 9px;
}
@media (max-width: 1000px) {
  .compact-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .component-library-bar {
    grid-template-columns: 1fr 1fr;
  }
  .store-context-switch {
    display: none;
  }
}
@media (max-width: 760px) {
  .editor-stepper {
    top: 58px;
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    overflow-x: auto;
  }
  .editor-stepper button {
    padding: 8px 5px;
    font-size: 8px;
  }
  .editor-stepper button span {
    display: none;
  }
  .draft-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .component-library-bar {
    grid-template-columns: 1fr;
  }
  .sticky-save {
    grid-template-columns: auto 1fr auto;
    padding-left: 8px;
    padding-right: 8px;
  }
  .sticky-save > div {
    display: none;
  }
  .sticky-save [data-editor-submit] {
    grid-column: 2/4;
  }
  .view-mode-switch {
    width: 100%;
  }
  .head-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .head-actions form,
  .head-actions > a {
    flex: 1;
  }
  .head-actions .btn {
    width: 100%;
  }
  .kitchen-toolbar {
    grid-template-columns: 1fr auto;
  }
  .kitchen-toolbar > a {
    grid-row: 1;
    grid-column: 1/3;
    justify-self: start;
  }
  .kitchen-toolbar h1 {
    font-size: 19px;
  }
  .kitchen-ingredients {
    grid-template-columns: 1fr;
  }
  .kitchen-ingredients > div {
    border-right: 0;
  }
  .kitchen-steps li {
    grid-template-columns: 38px 1fr;
    padding: 12px 10px;
  }
  .kitchen-steps p {
    font-size: 12px;
  }
  .kitchen-component > footer {
    flex-direction: column;
  }
  .trash-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .trash-actions {
    width: 100%;
  }
  .trash-actions form,
  .trash-actions details {
    flex: 1;
  }
  .trash-actions .btn {
    width: 100%;
  }
  .trash-delete-form {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 86px;
    width: auto;
  }
  .compact-gallery {
    grid-template-columns: 1fr;
  }
  .favorite-filter {
    min-height: 42px;
  }
  .component-save-template {
    width: 100%;
    margin-left: 0;
  }
  .component-save-template form {
    flex-direction: column;
  }
  .component-save-template input {
    min-width: 0;
  }
}

/* v2.3 mobile store context */
@media (max-width: 1000px) {
  .store-context-switch {
    display: block;
    margin-left: auto;
    margin-right: 7px;
  }
  .store-context-switch label {
    padding: 4px 6px;
    max-width: 130px;
  }
  .store-context-switch .icon {
    display: none;
  }
  .store-context-switch select {
    min-width: 0;
    width: 116px;
    max-width: 116px;
    text-overflow: ellipsis;
  }
}
@media (max-width: 380px) {
  .mobile-brand small {
    display: none;
  }
  .mobile-brand b {
    font-size: 9px;
    letter-spacing: 0.18em;
  }
  .store-context-switch select {
    width: 92px;
    max-width: 92px;
  }
}
.draft-resume-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.draft-resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
}
.draft-resume-card > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.draft-resume-card > a > span {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  border-radius: 4px;
  flex: 0 0 auto;
}
.draft-resume-card b,
.draft-resume-card small {
  display: block;
}
.draft-resume-card b {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draft-resume-card small {
  font-size: 9px;
  color: #777;
  margin-top: 2px;
}
@media (max-width: 760px) {
  .draft-resume-grid {
    grid-template-columns: 1fr;
  }
  .draft-resume-card {
    padding: 10px;
  }
}

/* CHEFLABOX v2.3.2 — intuitive one-plate cost entry */
.cost-required {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 2px 6px;
  border: 1px solid #c7c7c2;
  border-radius: 999px;
  background: #f1f1ee;
  color: #555;
  font-size: 8px;
  font-weight: 750;
  vertical-align: middle;
}
.money-field,
.percent-field {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}
.money-field:focus-within,
.percent-field:focus-within {
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}
.money-field input,
.percent-field input {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.money-field span,
.percent-field span {
  padding: 0 10px;
  color: #555;
  font-size: 11px;
  font-weight: 700;
}
.input-pair.compact {
  grid-template-columns: minmax(0, 1fr) minmax(60px, 0.55fr);
}
.cost-entry-guide {
  padding: 15px 17px;
  margin-bottom: 12px;
  background: #f8f8f6;
  box-shadow: none;
}
.cost-guide-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.cost-guide-title b {
  font-size: 12px;
}
.cost-guide-title span {
  padding: 3px 7px;
  background: #111;
  color: #fff;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.cost-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 12px;
}
.cost-guide-steps > div {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 4px 14px;
  border-right: 1px solid var(--line);
}
.cost-guide-steps > div:first-child {
  padding-left: 0;
}
.cost-guide-steps > div:last-child {
  border-right: 0;
}
.cost-guide-steps em {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  flex: 0 0 auto;
}
.cost-guide-steps p {
  margin: 0;
}
.cost-guide-steps b,
.cost-guide-steps small {
  display: block;
}
.cost-guide-steps b {
  font-size: 10px;
}
.cost-guide-steps small {
  font-size: 9px;
  color: #777;
  margin-top: 2px;
}
.cost-guide-note {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px dashed #d6d6d2;
  font-size: 9px;
  color: #666;
}
.cost-summary-card {
  position: sticky;
  top: 120px;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}
.cost-summary-card > div {
  padding: 13px 15px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.cost-summary-card > div:last-child {
  border-right: 0;
}
.cost-summary-card span,
.cost-summary-card b,
.cost-summary-card small {
  display: block;
}
.cost-summary-card span {
  font-size: 8px;
  color: #777;
  font-weight: 750;
  letter-spacing: 0.05em;
}
.cost-summary-card b {
  font-size: 18px;
  line-height: 1.2;
  margin: 3px 0;
  font-variant-numeric: tabular-nums;
}
.cost-summary-card small {
  font-size: 8px;
  color: #888;
}
.cost-summary-card .is-over {
  color: #111;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.cost-summary-card .is-under {
  color: #555;
}
.ingredient-row {
  display: block;
  padding: 0;
  margin: 10px 0;
  border: 1px solid #d7d7d2;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}
.ingredient-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: #f1f1ee;
  border-bottom: 1px solid #ddd;
}
.ingredient-row-head span {
  font-size: 9px;
  color: #666;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ingredient-row-head b {
  color: #111;
}
.ingredient-row-head .row-remove {
  font-size: 17px;
  line-height: 1;
  color: #666;
  padding: 0 4px;
}
.ingredient-fields {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.25fr) minmax(155px, 1fr) minmax(125px, 0.8fr)
    minmax(155px, 1fr) minmax(105px, 0.65fr) minmax(145px, 0.85fr);
  gap: 10px;
  padding: 12px;
  align-items: start;
}
.ingredient-field {
  min-width: 0;
}
.ingredient-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 750;
  color: #444;
}
.ingredient-field small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  color: #888;
  line-height: 1.35;
}
.ingredient-field > input,
.ingredient-field .input-pair input,
.ingredient-field .money-field input,
.ingredient-field .percent-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 8px 9px;
  font-size: 12px;
  background: #fff;
}
.ingredient-name-field input {
  font-weight: 700;
}
.ingredient-cost-output {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 66px;
  padding: 9px 11px;
  border: 1px solid #d4d4cf;
  border-radius: 5px;
  background: #f4f4f1;
}
.ingredient-cost-output span,
.ingredient-cost-output b,
.ingredient-cost-output small {
  display: block;
}
.ingredient-cost-output span {
  font-size: 8px;
  color: #777;
}
.ingredient-cost-output b {
  margin: 3px 0;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.ingredient-cost-output small {
  font-size: 8px;
  color: #777;
}
.ingredient-cost-output.is-calculated {
  background: #111;
  color: #fff;
  border-color: #111;
}
.ingredient-cost-output.is-calculated span,
.ingredient-cost-output.is-calculated small {
  color: #bdbdb8;
}
.ingredient-advanced {
  border-top: 1px solid var(--line);
  background: #fafaf8;
}
.ingredient-advanced summary {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  color: #666;
  list-style: none;
}
.ingredient-advanced summary::-webkit-details-marker {
  display: none;
}
.ingredient-advanced summary:after {
  content: "＋";
  float: right;
}
.ingredient-advanced[open] summary:after {
  content: "−";
}
.ingredient-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 2px 12px 12px;
}
.ingredient-advanced-grid .span-2 {
  grid-column: span 2;
}
.ingredient-row > .drag-handle {
  display: none;
}
.final-cost-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-bottom: 17px;
  border: 1px solid #d4d4cf;
  border-radius: 6px;
  background: #f5f5f2;
}
.final-cost-preview > div {
  padding: 12px;
  border-right: 1px solid #d4d4cf;
}
.final-cost-preview > div:nth-child(3) {
  border-right: 0;
}
.final-cost-preview span,
.final-cost-preview b {
  display: block;
}
.final-cost-preview span {
  font-size: 8px;
  color: #777;
}
.final-cost-preview b {
  font-size: 16px;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.final-cost-preview > small {
  grid-column: 1/4;
  padding: 8px 12px;
  border-top: 1px solid #d4d4cf;
  color: #666;
  font-size: 9px;
}
.cost-data-table .data-head,
.cost-data-table .data-row {
  grid-template-columns: 1.3fr 0.65fr 1fr 0.75fr 0.75fr;
}
.cost-data-table .data-row > span:nth-child(4) b {
  font-size: 13px;
}
.cost-data-table .data-row > span:nth-child(4) small {
  font-size: 8px;
  line-height: 1.3;
}
.definition-grid > div dd {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1180px) {
  .ingredient-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ingredient-name-field {
    grid-column: span 2;
  }
  .ingredient-cost-output {
    grid-column: auto;
  }
  .cost-summary-card {
    top: 110px;
  }
}
@media (max-width: 760px) {
  .cost-guide-steps {
    grid-template-columns: 1fr;
  }
  .cost-guide-steps > div {
    padding: 8px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .cost-guide-steps > div:last-child {
    border-bottom: 0;
  }
  .cost-summary-card {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
  .cost-summary-card > div:nth-child(2) {
    border-right: 0;
  }
  .cost-summary-card > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .ingredient-row,
  .step-row {
    padding-right: 0;
  }
  .ingredient-row .row-remove {
    position: static;
  }
  .ingredient-fields {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }
  .ingredient-name-field {
    grid-column: 1/3;
  }
  .ingredient-cost-output {
    grid-column: 1/3;
    min-height: 60px;
  }
  .ingredient-fields input:first-child {
    grid-column: auto;
  }
  .ingredient-field .input-pair.compact {
    grid-template-columns: minmax(0, 1fr) 64px;
  }
  .ingredient-advanced-grid {
    grid-template-columns: 1fr;
  }
  .ingredient-advanced-grid .span-2 {
    grid-column: auto;
  }
  .final-cost-preview {
    grid-template-columns: 1fr;
  }
  .final-cost-preview > div {
    border-right: 0;
    border-bottom: 1px solid #d4d4cf;
  }
  .final-cost-preview > small {
    grid-column: auto;
  }
  .cost-data-table .data-head,
  .cost-data-table .data-row {
    grid-template-columns: 1.2fr 0.75fr 0.8fr;
  }
  .cost-data-table .data-head span:nth-child(3),
  .cost-data-table .data-row > span:nth-child(3) {
    display: none;
  }
  .cost-data-table .data-head span:nth-child(4),
  .cost-data-table .data-row > span:nth-child(4) {
    display: block;
  }
  .cost-data-table .data-head span:nth-child(5),
  .cost-data-table .data-row > span:nth-child(5) {
    display: none;
  }
}
@media (max-width: 420px) {
  .ingredient-fields {
    grid-template-columns: 1fr;
  }
  .ingredient-name-field,
  .ingredient-cost-output {
    grid-column: auto;
  }
  .cost-summary-card {
    grid-template-columns: 1fr;
  }
  .cost-summary-card > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .cost-summary-card > div:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 760px) {
  .ingredient-field input,
  .ingredient-field select,
  .ingredient-field textarea {
    font-size: 16px !important;
  }
}

/* v2.3.3 external exports */
.export-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.export-guide-card {
  padding: 18px;
  display: flex;
  gap: 13px;
}
.export-guide-card > span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  flex: none;
}
.export-guide-card h2 {
  font-size: 15px;
  margin: 0 0 5px;
}
.export-guide-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}
.export-options {
  padding: 22px;
}
.export-options-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.export-options-head h2 {
  margin: 0;
}
.export-options-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.export-buttons {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}
.export-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #d8d8d5;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.export-toolbar b,
.export-toolbar small {
  display: block;
}
.export-toolbar small {
  color: #666;
  font-size: 11px;
  margin-top: 2px;
}
.print-shell {
  max-width: none;
  margin: 0;
  background: #ececea;
}
.print-shell .main-content {
  max-width: none;
  padding: 0;
}
.print-document {
  width: 210mm;
  min-height: 297mm;
  margin: 18px auto;
  background: #fff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
  padding: 14mm 15mm;
  color: #161616;
}
.print-cover {
  min-height: 255mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12mm 5mm;
}
.print-cover > img {
  width: 165px;
  height: auto;
}
.print-cover > div span,
.print-category {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 900;
  color: #666;
}
.print-cover h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 8px 0;
}
.print-cover p {
  color: #555;
  max-width: 130mm;
}
.print-cover dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #111;
}
.print-cover dl div {
  padding: 9px 0;
  border-bottom: 1px solid #ccc;
}
.print-cover dt {
  font-size: 9px;
  color: #777;
  font-weight: 800;
}
.print-cover dd {
  margin: 2px 0 0;
  font-size: 13px;
}
.print-toc {
  min-height: 250mm;
  padding: 8mm 4mm;
}
.print-toc h1 {
  font-size: 28px;
  border-bottom: 2px solid #111;
  padding-bottom: 8px;
}
.print-toc h2 {
  font-size: 13px;
  margin: 20px 0 5px;
  padding-bottom: 4px;
  border-bottom: 1px solid #aaa;
}
.print-toc > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #bbb;
  padding: 6px 0;
  font-size: 11px;
}
.print-toc small {
  color: #777;
}
.print-recipe {
  padding: 3mm 2mm 0;
}
.print-recipe-head {
  display: grid;
  grid-template-columns: 58mm 1fr;
  gap: 9mm;
  align-items: start;
  border-bottom: 2px solid #111;
  padding-bottom: 7mm;
}
.print-recipe-head > div:empty {
  display: none;
}
.print-recipe-head > div:empty + div {
  grid-column: 1/-1;
}
.print-recipe-image {
  width: 58mm;
  height: 43mm;
  object-fit: cover;
  background: #eee;
}
.print-recipe-head h1 {
  font-size: 25px;
  line-height: 1.25;
  margin: 5px 0 7px;
}
.print-recipe-head p {
  font-size: 11px;
  line-height: 1.65;
  margin: 0;
  color: #444;
}
.print-store-list {
  font-size: 9px;
  font-weight: 800;
  margin-top: 8px;
  color: #555;
}
.print-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #aaa;
  border-width: 0 0 1px 1px;
  margin: 7mm 0;
}
.print-meta-grid > div {
  padding: 6px 8px;
  border: 1px solid #aaa;
  border-width: 1px 1px 0 0;
}
.print-meta-grid b,
.print-meta-grid span {
  display: block;
}
.print-meta-grid b {
  font-size: 8px;
  color: #777;
}
.print-meta-grid span {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}
.print-design {
  margin: 7mm 0;
}
.print-design h2,
.print-notes h2 {
  font-size: 14px;
  margin: 0 0 7px;
}
.print-design dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid #bbb;
}
.print-design dl div {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-bottom: 1px solid #ccc;
  padding: 5px 0;
  font-size: 10px;
}
.print-design dt {
  font-weight: 800;
  color: #555;
}
.print-design dd {
  margin: 0;
}
.print-component {
  margin-top: 8mm;
  break-inside: auto;
}
.print-section-title {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border-bottom: 1.5px solid #111;
  padding-bottom: 5px;
}
.print-section-title > span {
  font-size: 11px;
  font-weight: 900;
  background: #111;
  color: #fff;
  padding: 4px 6px;
}
.print-section-title h2 {
  font-size: 17px;
  margin: 0;
}
.print-section-title p {
  font-size: 9px;
  color: #666;
  margin: 2px 0;
}
.print-component h3 {
  font-size: 11px;
  margin: 6mm 0 3mm;
}
.print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 8.5px;
}
.print-table th,
.print-table td {
  border: 1px solid #aaa;
  padding: 4px 5px;
  vertical-align: top;
  word-break: break-word;
}
.print-table th {
  background: #efefed;
  text-align: left;
}
.print-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 3px;
}
.print-steps li {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 8px;
  border-bottom: 1px solid #ccc;
  padding: 5px 0;
  break-inside: avoid;
}
.print-steps li > span {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 900;
}
.print-steps b {
  font-size: 10px;
}
.print-steps p {
  font-size: 9.5px;
  line-height: 1.55;
  margin: 2px 0;
}
.print-steps small {
  font-size: 8px;
  color: #555;
}
.print-operations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #aaa;
  margin-top: 5mm;
}
.print-operations > div {
  padding: 5px;
  border-bottom: 1px solid #aaa;
}
.print-operations b,
.print-operations span {
  display: block;
}
.print-operations b {
  font-size: 8px;
  color: #666;
}
.print-operations span {
  font-size: 9px;
  margin-top: 2px;
}
.print-notes {
  margin-top: 7mm;
  padding-top: 5mm;
  border-top: 1px solid #aaa;
}
.print-notes p {
  font-size: 10px;
  line-height: 1.6;
}
.print-recipe-footer {
  border-top: 1px solid #111;
  margin-top: 8mm;
  padding-top: 3mm;
  display: flex;
  justify-content: space-between;
  font-size: 7.5px;
  color: #777;
}
.print-page-break {
  break-before: page;
  page-break-before: always;
}
.single-recipe-document .print-recipe {
  padding-top: 0;
}
@media (max-width: 900px) {
  .export-guide-grid {
    grid-template-columns: 1fr;
  }
  .export-buttons {
    display: grid;
  }
  .export-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .export-toolbar .inline {
    width: 100%;
    overflow-x: auto;
  }
  .print-document {
    width: 100%;
    min-height: 0;
    margin: 0;
    box-shadow: none;
    padding: 18px;
  }
  .print-recipe-head {
    grid-template-columns: 110px 1fr;
  }
  .print-recipe-image {
    width: 110px;
    height: 90px;
  }
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  .no-print {
    display: none !important;
  }
  body {
    background: #fff !important;
  }
  .print-shell,
  .print-shell .main-content {
    background: #fff !important;
  }
  .print-document {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .print-cover {
    min-height: 250mm;
  }
  .print-toc {
    min-height: 250mm;
  }
  .print-recipe {
    padding: 0;
  }
  .print-recipe-head {
    grid-template-columns: 55mm 1fr;
  }
  .print-recipe-image {
    width: 55mm;
    height: 41mm;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}

/* v2.3.4 usability and repository management */
.hero-create,
.hero-create:visited {
  color: #fff;
}
.hero-create b {
  color: #fff;
}
.hero-create small {
  color: #c4c4c0;
}
.hero-create:hover,
.hero-create:focus-visible {
  color: #fff;
  border-color: #666;
  background: #252525;
}
.hero-create > span {
  color: #111;
  background: #fff;
}
.dashboard-hero a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.repo-card {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
}
.repo-card-link {
  display: flex;
  gap: 15px;
  padding: 14px;
  min-width: 0;
}
.repo-card-link:hover {
  background: #fafaf8;
}
.repo-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 12px;
  border-left: 1px solid var(--line);
  background: #fafaf8;
}
.danger-link {
  color: #8f2620;
}
.danger-link:hover {
  background: #fff0ef;
  color: #8f2620;
}
.repo-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.danger-zone {
  margin-top: 24px;
  padding: 22px;
  border-color: #d9a7a3;
  background: #fffafa;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: 28px;
  align-items: start;
}
.danger-zone h2 {
  margin: 4px 0 7px;
  font-size: 18px;
}
.danger-zone p {
  margin: 0;
  color: #6e5552;
  font-size: 12px;
  line-height: 1.75;
}
.danger-zone form {
  padding-left: 22px;
  border-left: 1px solid #e8c7c4;
}
.danger-zone .field {
  margin-bottom: 12px;
}
.more-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.more-menu-item {
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  box-shadow: none;
}
.more-menu-item:hover {
  border-color: #888;
  background: #fafaf8;
}
.more-menu-item > span {
  width: 42px;
  height: 42px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.more-menu-item > div b,
.more-menu-item > div small {
  display: block;
}
.more-menu-item > div b {
  font-size: 13px;
}
.more-menu-item > div small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.more-menu-item > .icon:last-child {
  width: 17px;
  color: #999;
  transform: rotate(180deg);
}
.more-logout {
  max-width: 420px;
  margin: 22px auto 0;
}
.btn:focus-visible,
.repo-card-link:focus-visible,
.more-menu-item:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
@media (max-width: 760px) {
  .dashboard-hero {
    min-height: 0;
  }
  .dashboard-hero h1 {
    font-size: 30px;
  }
  .hero-create {
    background: #242424;
    border-color: #555;
  }
  .hero-create b {
    font-size: 13px;
  }
  .hero-create small {
    font-size: 10px;
  }
  .repo-card {
    grid-template-columns: 1fr;
  }
  .repo-card-actions {
    border-left: 0;
    border-top: 1px solid var(--line);
    justify-content: flex-end;
    padding: 9px 12px;
  }
  .repo-card-actions .btn {
    min-height: 40px;
  }
  .repo-title-row .repo-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .repo-title-row .repo-header-actions .btn {
    width: 100%;
    padding-left: 9px;
    padding-right: 9px;
  }
  .danger-zone {
    grid-template-columns: 1fr;
    padding: 17px;
    gap: 18px;
  }
  .danger-zone form {
    padding-left: 0;
    padding-top: 17px;
    border-left: 0;
    border-top: 1px solid #e8c7c4;
  }
  .more-menu-grid {
    grid-template-columns: 1fr;
  }
  .more-menu-item {
    min-height: 72px;
  }
  .btn,
  .filter-chip,
  .icon-btn {
    min-height: 42px;
  }
  .repo-card-link {
    padding: 13px;
  }
  .repo-card p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}
@media (max-width: 420px) {
  .repo-title-row .repo-header-actions {
    grid-template-columns: 1fr;
  }
  .dashboard-hero h1 {
    font-size: 27px;
  }
  .hero-create {
    padding: 12px;
  }
}

.repository-maintenance {
  margin-top: 24px;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: none;
}
.repository-maintenance h2 {
  margin: 4px 0 5px;
  font-size: 16px;
}
.repository-maintenance p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.repository-maintenance form {
  flex: none;
}
@media (max-width: 760px) {
  .repository-maintenance {
    align-items: stretch;
    flex-direction: column;
    padding: 17px;
  }
  .repository-maintenance .btn {
    width: 100%;
  }
}

.dashboard-hero > div:first-child {
  min-width: 0;
  max-width: calc(100% - 250px);
}
.dashboard-hero h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .dashboard-hero > div:first-child {
    max-width: none;
  }
}

/* v2.3.5 narrow-card layout and terminology usability */
.field-optional {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.danger-zone {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}
.danger-zone > *,
.danger-zone h2,
.danger-zone p,
.danger-zone form {
  min-width: 0;
}
.danger-zone h2 {
  word-break: keep-all;
  overflow-wrap: normal;
}
.danger-zone form {
  padding-left: 0;
  padding-top: 16px;
  border-left: 0;
  border-top: 1px solid #e8c7c4;
}
.danger-zone .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  word-break: keep-all;
}
.recipe-side .danger-zone {
  display: block;
}
.recipe-side .danger-zone h2 {
  margin-top: 0;
}
.recipe-side .danger-zone p {
  margin-bottom: 14px;
}
.recipe-side .danger-zone form {
  padding-top: 14px;
}
@media (min-width: 1000px) {
  .danger-zone.danger-zone-wide {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
    gap: 28px;
  }
  .danger-zone.danger-zone-wide form {
    padding-left: 22px;
    padding-top: 0;
    border-left: 1px solid #e8c7c4;
    border-top: 0;
  }
}

/* v2.3.6 comprehensive responsive UI stabilization */
.page-head > *,
.section-head > *,
.repo-title-row > *,
.repo-controls > *,
.toolbar > *,
.board-toolbar > *,
.recipe-heading > *,
.commit-banner > *,
.merge-box > *,
.export-options-head > *,
.public-header > * {
  min-width: 0;
}

.page-head h1,
.repo-title-row h1,
.recipe-heading h1,
.kitchen-toolbar h1,
.public-header h1,
.management-card b,
.user-row b,
.member-row b,
.trash-card h2 {
  overflow-wrap: anywhere;
  word-break: normal;
}

.btn {
  max-width: 100%;
}

.repo-card-main h3,
.repo-card-main p,
.repo-stats,
.recipe-card-body h3,
.recipe-card-body p,
.sidebar-user b,
.sidebar-user small,
.user-row small,
.member-row small,
.issue-main,
.pr-main,
.comment-body,
.kanban-card,
.trash-card > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.store-tile b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
}

.breadcrumb {
  min-width: 0;
  max-width: 100%;
  align-items: center;
}
.breadcrumb b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb a {
  flex: 0 0 auto;
}

.repo-tabs a {
  flex: 0 0 auto;
}

.recipe-heading > div:nth-child(2) {
  flex: 1 1 auto;
  min-width: 0;
}
.recipe-heading .head-actions {
  flex: 0 0 auto;
}

.row-remove,
.text-danger[data-remove-component] {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  line-height: 1;
}
.row-remove:hover,
.row-remove:focus-visible,
.text-danger[data-remove-component]:hover,
.text-danger[data-remove-component]:focus-visible {
  background: #fff0ef;
}

.top-avatar,
.top-actions .icon-btn {
  min-width: 40px;
  min-height: 40px;
}

.user-row > *,
.member-row > *,
.run-row > *,
.data-row > *,
.history-item > * {
  min-width: 0;
}

.public-header img {
  flex: 0 0 auto;
}
.public-header > div {
  min-width: 0;
}

@media (min-width: 761px) and (max-width: 900px) {
  .global-search {
    display: none;
  }
  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
  .store-context-switch {
    margin-left: 0;
  }
  .store-context-switch label {
    max-width: 180px;
  }
  .store-context-switch select {
    width: 150px;
    max-width: 150px;
    min-width: 0;
    text-overflow: ellipsis;
  }
  .repo-grid {
    grid-template-columns: 1fr;
  }
  .repo-card-link {
    min-width: 0;
  }
  .recipe-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .recipe-heading .head-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .recipe-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .recipe-heading .head-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .global-search {
    width: min(360px, 38vw);
  }
  .global-search kbd {
    display: none;
  }
}

@media (max-width: 760px) {
  .top-avatar,
  .top-actions .icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .btn {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  .btn-sm {
    min-height: 40px;
  }

  .page-head h1,
  .repo-title-row h1,
  .recipe-heading h1 {
    overflow-wrap: anywhere;
  }

  .repo-tabs {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .repo-tabs a {
    min-width: max-content;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 10px;
    scroll-snap-align: start;
  }

  .breadcrumb {
    overflow: hidden;
  }
  .breadcrumb a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .recipe-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .recipe-heading .recipe-hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .recipe-heading .head-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .recipe-heading .head-actions > * {
    min-width: 0;
  }

  .kitchen-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .kitchen-toolbar > a {
    align-self: flex-start;
  }
  .kitchen-toolbar > div {
    min-width: 0;
  }
  .kitchen-toolbar h1 {
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 0;
  }
  .kitchen-scale {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }
  .kitchen-scale input {
    width: 100%;
    min-width: 0;
  }
  .kitchen-steps label {
    min-width: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
  }
  .kitchen-steps label input {
    width: 28px;
    height: 28px;
  }

  .board-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .board-toolbar .btn {
    width: 100%;
  }

  .repo-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .repo-card-actions .btn {
    width: 100%;
  }

  .user-row > div:first-child,
  .member-row > div:first-child {
    overflow-wrap: anywhere;
  }
  .user-row > div:last-child {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .user-row > div:last-child .btn,
  .user-row > div:last-child form,
  .user-row > div:last-child form .btn {
    width: 100%;
  }

  .trash-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-header {
    align-items: flex-start;
  }

  body.page-recipe-editor,
  body.page-kitchen-mode {
    padding-bottom: 0;
  }
  body.page-recipe-editor .bottom-nav,
  body.page-kitchen-mode .bottom-nav {
    display: none;
  }
  body.page-recipe-editor .main-content,
  body.page-kitchen-mode .main-content {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
  body.page-recipe-editor .sticky-save {
    bottom: max(8px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .recipe-heading .head-actions {
    grid-template-columns: 1fr;
  }
  .repo-header-actions {
    grid-template-columns: 1fr !important;
  }
  .toolbar-right {
    display: grid;
    grid-template-columns: 1fr;
  }
  .toolbar-right .btn {
    width: 100%;
  }
}

/* v2.3.6 final visual-audit corrections */
.sticky-save .btn-outline {
  color: #111;
  background: #fff;
}

@media (min-width: 761px) and (max-width: 900px) {
  .dashboard-hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 22px;
  }
  .dashboard-hero > div:first-child {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .dashboard-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 4.8vw, 38px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .hero-create {
    width: min(100%, 300px);
    min-width: 0;
    align-self: flex-start;
  }
}

@media (max-width: 760px) {
  .repo-header {
    width: auto;
    min-width: 0;
  }
  .repo-header > *,
  .repo-title-row > *,
  .repo-title-row > div:first-child {
    min-width: 0;
    max-width: 100%;
  }
  .repo-title-row h1,
  .repo-title-row p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .sticky-save .btn-outline {
    color: #111;
  }
}

/* Comfortable tap targets across compact navigation */
.store-context-switch label {
  min-height: 38px;
  box-sizing: border-box;
}
.store-context-switch select {
  min-height: 28px;
  cursor: pointer;
}
.mobile-brand {
  min-height: 40px;
}
.section-head > a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 760px) {
  .bottom-nav a {
    min-height: 44px;
    justify-content: center;
  }
  .store-context-switch label {
    min-height: 40px;
  }
}

/* Readability corrections found during contrast audit */
.sidebar-user small,
.brand-copy small,
.mobile-brand small {
  color: #666;
}
.global-search kbd,
.recipe-card-footer {
  color: #666;
}
.store-tile.all small {
  color: #c7c7c2 !important;
}
@media (max-width: 760px) {
  .bottom-nav a {
    color: #666;
  }
}

/* v2.3.8 food-service trial confirmation workflow */
.review-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
  margin: 16px 0;
}
.review-flow > div {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}
.review-flow > div:last-child { border-right: 0; }
.review-flow span {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.review-flow b { font-size: 13px; line-height: 1.35; }
.review-flow small { color: var(--muted); font-size: 11px; line-height: 1.5; }

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 18px;
}
.review-toolbar .filter-row { margin: 0; min-width: 0; }
.review-toolbar > .btn { flex: 0 0 auto; }

.review-form-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  overflow: hidden;
  margin-bottom: 16px;
}
.review-form-guide > div {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-right: 1px solid var(--line);
}
.review-form-guide > div:last-child { border-right: 0; }
.review-form-guide span {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.review-form-guide p { margin: 0; min-width: 0; }
.review-form-guide b { display: block; font-size: 13px; }
.review-form-guide small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.5; }

.review-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 16px;
  margin-bottom: 14px;
  overflow: hidden;
}
.review-progress > div {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #858585;
  font-size: 12px;
  text-align: center;
}
.review-progress > div:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(50% + 36px);
  right: calc(-50% + 36px);
  top: 14px;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.review-progress span {
  position: relative;
  z-index: 1;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #cfcfca;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.review-progress b { position: relative; z-index: 1; font-size: 12px; }
.review-progress .complete,
.review-progress .current { color: #111; }
.review-progress .complete span,
.review-progress .current span { border-color: #111; background: #111; color: #fff; }
.review-progress .current b { text-decoration: underline; text-underline-offset: 4px; }

.decision-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}
.decision-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.decision-guide span {
  min-width: 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  border-right: 1px solid var(--line);
}
.decision-guide span:last-child { border-right: 0; }
.decision-guide b { display: block; margin-bottom: 2px; color: #111; font-size: 12px; }
.decision-box .merge-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.decision-box .merge-actions form,
.decision-box .merge-actions button { width: 100%; }

@media (max-width: 900px) {
  .review-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-flow > div:nth-child(2) { border-right: 0; }
  .review-flow > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .review-form-guide { grid-template-columns: 1fr; }
  .review-form-guide > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .review-form-guide > div:last-child { border-bottom: 0; }
  .review-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .review-progress > div::after { display: none; }
}

@media (max-width: 600px) {
  .review-toolbar { align-items: stretch; flex-direction: column; }
  .review-toolbar > .btn { width: 100%; }
  .review-toolbar .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .review-flow { grid-template-columns: 1fr; }
  .review-flow > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .review-flow > div:last-child { border-bottom: 0; }
  .review-progress { grid-template-columns: 1fr; padding: 12px; }
  .review-progress > div { justify-content: flex-start; }
  .decision-guide { grid-template-columns: 1fr; }
  .decision-guide span { border-right: 0; border-bottom: 1px solid var(--line); }
  .decision-guide span:last-child { border-bottom: 0; }
  .decision-box .merge-actions { grid-template-columns: 1fr; }
  .pr-row { padding: 13px; }
  .pr-main .inline b { overflow-wrap: anywhere; }
}


/* v2.3.8 formal adoption workflow */
.decision-actions form:first-child { order: 1; }
.decision-actions form:nth-child(2) { order: 2; }
.decision-actions form:nth-child(3) { order: 3; }
.resubmit-actions { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important; }
@media (max-width: 600px) { .resubmit-actions { grid-template-columns: 1fr !important; } }


/* v2.3.9 automatic recipe image optimization */
.image-upload-status{display:block;margin-top:6px;color:#3f654f;font-weight:700;min-height:1.4em}

/* CHEFLABOX v2.4.5 */
.ingredient-ledger-field{background:#f1f5f1;border:1px solid #dce7de;border-radius:12px;padding:10px}
.preparation-link-card{margin-bottom:14px}.preparation-link-row{display:grid;grid-template-columns:minmax(220px,2fr) minmax(90px,.7fr) minmax(80px,.6fr) minmax(150px,1.2fr) minmax(100px,.7fr) 38px;gap:8px;align-items:center;margin-top:8px}.preparation-link-row select,.preparation-link-row input{min-width:0}.preparation-cost{font-size:12px;font-weight:800;color:var(--muted);text-align:right}.preparation-cost.is-calculated{color:#315f49}
.preparation-card{display:block;text-decoration:none;color:inherit}.preparation-card h2{margin:12px 0 6px}.preparation-card p{color:var(--muted);min-height:2.8em}.quick-entry-notice{margin-bottom:14px}.quick-entry-mode .quick-hidden-field{display:none!important}.quick-entry-mode .cost-entry-guide{display:none}.quick-entry-mode .ingredient-advanced{display:none}.quick-entry-mode [data-cost-summary]{opacity:.75}
@media(max-width:760px){.preparation-link-row{grid-template-columns:1fr 1fr}.preparation-link-row select,.preparation-link-row input:first-of-type{grid-column:span 1}.preparation-link-row input[name="preparation_notes[]"]{grid-column:1/-1}.preparation-link-row .preparation-cost{grid-column:1;text-align:left}.preparation-link-row .row-remove{grid-column:2;justify-self:end}}
