/* SmackLip — Dashboard layout (shared by Restaurant + Admin) */

/* Coming-Soon placeholder treatment (e.g. Kitchen Insights) */
.kitchen-insights-coming {
  background:
    repeating-linear-gradient(45deg, rgba(229, 100, 30, 0.04) 0 12px, transparent 12px 24px),
    var(--surface, #fff);
  border-style: dashed;
}
.kitchen-insights-coming h3 { opacity: .85; }


/* The [hidden] attribute must beat display:grid on login/dash shells */
[hidden] { display: none !important; }

/* Tab-panel switching inside the dashboard main column */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: tab-fade .25s ease-out; }
@keyframes tab-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Settings forms */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.settings-grid .panel.full-width { grid-column: 1 / -1; }
.settings-row { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row label { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.settings-row .hint { color: var(--ink-mute); font-size: var(--fs-xs); display: block; margin-top: 2px; font-weight: 400; }
.settings-row input,
.settings-row select,
.settings-row textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--brand-cream-warm);
  color: var(--ink);
  outline: none;
  font: inherit;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.settings-row input:focus,
.settings-row select:focus,
.settings-row textarea:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 4px rgba(229, 100, 30, 0.18); }
.settings-row textarea { min-height: 80px; resize: vertical; }
.settings-row .switch-row { display: flex; align-items: center; gap: 1rem; }
.toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 44px; height: 26px; border-radius: 13px;
  background: var(--line-strong);
  position: relative; cursor: pointer;
  transition: background var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.toggle::after {
  content: ""; position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: left var(--t-fast) var(--ease-spring);
}
.toggle:checked { background: var(--brand-orange); }
.toggle:checked::after { left: 21px; }

.team-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.team-row:last-child { border-bottom: 0; }
.team-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-orange), var(--brand-chocolate)); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 14px; }
.team-name { font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.team-email { font-size: var(--fs-xs); color: var(--ink-mute); }
.team-role { font-size: var(--fs-xs); padding: .15rem .55rem; background: var(--brand-cream-warm); border-radius: 999px; font-weight: 700; color: var(--ink-soft); }

.integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .85rem; margin-top: .5rem; }
.integration {
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: grid; grid-template-columns: 28px 1fr auto; gap: .65rem; align-items: center;
}
.integration > div:nth-child(2) { min-width: 0; }
.integration-icon { width: 28px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, var(--brand-orange-glow), var(--brand-orange)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.integration-name { font-weight: 700; font-size: var(--fs-sm); }
.integration-meta { font-size: var(--fs-xs); color: var(--ink-mute); }
.integration-status { font-size: var(--fs-xs); font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.integration-status.connected { background: rgba(31, 122, 58, .12); color: #1F7A3A; }
.integration-status.available { background: var(--brand-cream-warm); color: var(--ink-mute); border: 1px solid var(--line); }
.integration-status.roadmap   { background: rgba(245, 158, 11, .14); color: #B45309; border: 1px solid rgba(245, 158, 11, .25); }

.btn-row-inline { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-mini { padding: .45rem .9rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: var(--brand-cream-warm); color: var(--ink); border: 1px solid var(--line); cursor: pointer; transition: all var(--t-fast) var(--ease); }
.btn-mini:hover { background: #fff; border-color: var(--line-strong); }
.btn-mini.primary { background: var(--brand-orange); color: #fff; border-color: transparent; }
.btn-mini.primary:hover { background: var(--brand-orange-bright); }
.btn-mini.danger { color: #B33B1A; }
.btn-mini.danger:hover { background: rgba(179, 59, 26, .08); border-color: rgba(179, 59, 26, .24); }

/* Menu editor: labels stay attached to their controls and each field gets
   enough room for the kind of content it accepts. */
.menu-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(270px, 1.6fr) minmax(140px, .75fr) auto;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.menu-field { min-width: 0; }
.menu-field label {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-bottom: .4rem;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.menu-field-hint {
  color: var(--ink-mute);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.menu-field input,
.menu-field textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font: inherit;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.menu-field input:focus,
.menu-field textarea:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(229, 100, 30, 0.18);
}
.menu-field textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.45;
}
.menu-field input::placeholder,
.menu-field textarea::placeholder { color: var(--ink-mute); opacity: .75; }
.menu-form-actions { display: flex; align-items: flex-start; }
.menu-form-actions .btn-mini { white-space: nowrap; min-height: 42px; }
.menu-edit-panel {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(229, 100, 30, .32);
  border-radius: var(--radius-sm);
  background: #fffaf5;
}
.menu-edit-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}
.menu-edit-heading h4 { margin: 0; font-size: var(--fs-lg); }
.menu-edit-heading .panel-meta { margin: .2rem 0 0; }
.menu-edit-form { margin: 0; padding: 0; border: 0; background: transparent; }

.menu-edit-form-complex { display: flex; flex-direction: column; gap: 1.5rem; }
.menu-edit-section { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.25rem; background: #fff; margin: 0; }
.menu-edit-section legend { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-md); color: var(--ink); padding: 0 .5rem; margin-left: -.5rem; }
.basic-details-grid { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(270px, 1.6fr) minmax(140px, .75fr); gap: 1rem; align-items: start; }
.safety-alert { background: rgba(229, 100, 30, 0.10); border: 1px solid rgba(229, 100, 30, 0.3); padding: 1rem; border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--ink); margin-bottom: 1.5rem; }
.safety-alert strong { color: var(--brand-orange); }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.safety-col label { display: block; font-weight: 700; font-size: var(--fs-sm); color: var(--ink); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.safety-status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-size: var(--fs-sm); color: var(--ink); }
.safety-status-row select { width: 150px; padding: .35rem .5rem; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--brand-cream-warm); font-family: inherit; font-size: var(--fs-sm); color: var(--ink); outline: none; }
.safety-status-row select:focus { border-color: var(--brand-orange); }
.safety-status-entry { padding-bottom: .85rem; margin-bottom: .85rem; border-bottom: 1px solid var(--line); }
.safety-status-entry .safety-status-row { margin-bottom: .45rem; }
.safety-status-evidence { width: 100%; padding: .5rem .6rem; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: var(--fs-xs); }
.safety-status-evidence:focus { outline: none; border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(229, 100, 30, .14); }
.nutrition-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.cert-grid { display: grid; grid-template-columns: 90px 1fr 1fr; gap: .75rem; align-items: center; }
.menu-field select { width: 100%; padding: .65rem .8rem; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); outline: none; font: inherit; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.menu-field select:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 4px rgba(229, 100, 30, 0.18); }

@media (max-width: 720px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-row { grid-template-columns: 1fr; gap: .35rem; }
  .team-row { grid-template-columns: auto 1fr auto; }
  .team-row .btn-mini { grid-column: 1 / -1; justify-self: end; }
  .menu-form { grid-template-columns: 1fr 1fr; }
  .menu-field-description { grid-column: 1 / -1; grid-row: 1; }
  .menu-field-name { grid-column: 1; grid-row: 2; }
  .menu-field-price { grid-column: 2; grid-row: 2; }
  .menu-form-actions { grid-column: 1 / -1; grid-row: 3; }
  .basic-details-grid { grid-template-columns: 1fr 1fr; }
  .safety-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .menu-form { grid-template-columns: 1fr; }
  .menu-field-description,
  .menu-field-name,
  .menu-field-price,
  .menu-form-actions {
    grid-column: 1;
    grid-row: auto;
  }
  .basic-details-grid { grid-template-columns: 1fr; }
}

:root {
  --dash-bg: #FBF6EE;
  --dash-side: #2A0F00;
  --dash-side-text: #F2DDC1;
  --dash-side-active: #E5641E;
  --dash-card: #FFFFFF;
  --dash-line: rgba(61, 24, 0, 0.10);
  --dash-line-strong: rgba(61, 24, 0, 0.20);
}

body.dash {
  background: var(--dash-bg);
  font-family: var(--font-body);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

/* ---------- Login screen ---------- */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(247, 123, 42, 0.18), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(229, 100, 30, 0.10), transparent 50%),
    var(--brand-cream);
}
.login-card {
  width: 100%; max-width: 460px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.login-card .nav-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  display: inline-flex; align-items: center; gap: .65rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.login-card .nav-brand img { width: 44px; height: 44px; object-fit: contain; }
.login-card h1 { font-size: var(--fs-4xl); margin: 0 0 .5rem; }
.login-card p.lede { font-size: var(--fs-md); margin-bottom: 2rem; }
.field { display: block; margin-bottom: 1.25rem; }
.field label { display: block; font-size: var(--fs-sm); font-weight: 700; margin-bottom: .4rem; color: var(--ink); }
.field input {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--brand-cream-warm);
  color: var(--ink);
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 4px rgba(229, 100, 30, 0.18); }
.login-card .btn { width: 100%; }
.login-meta { margin-top: 1.5rem; font-size: var(--fs-xs); color: var(--ink-mute); text-align: center; }
.login-meta a { color: var(--brand-orange); font-weight: 600; }
.preview-banner {
  display: flex; align-items: center; gap: .65rem;
  background: rgba(229, 100, 30, 0.10);
  color: var(--brand-orange);
  padding: .75rem 1rem;
  border-radius: 12px;
  font-size: var(--fs-xs); font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(229, 100, 30, 0.24);
}
.preview-banner svg { width: 18px; height: 18px; }

/* ---------- Dashboard layout ---------- */
.dash-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--dash-side);
  color: var(--dash-side-text);
  padding: 1.5rem 1rem;
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  gap: 1rem;
}
.sidebar-brand {
  display: flex; align-items: center; gap: .65rem;
  padding: .25rem .75rem 1rem;
  border-bottom: 1px solid rgba(255, 184, 130, 0.14);
  font-family: var(--font-display); font-size: 1.4rem;
  color: #fff;
}
.sidebar-brand img { width: 36px; height: 36px; }
.sidebar-section { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(242, 221, 193, 0.55); padding: .5rem .75rem; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .85rem;
  border-radius: 10px;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--dash-side-text);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.sidebar nav a:hover { background: rgba(255, 184, 130, 0.10); color: #fff; }
.sidebar nav a.active { background: var(--dash-side-active); color: #fff; }
.sidebar nav a svg { width: 18px; height: 18px; opacity: .9; }
.sidebar-foot {
  margin-top: auto;
  padding: 1rem .75rem;
  font-size: var(--fs-xs);
  color: rgba(242, 221, 193, 0.5);
  border-top: 1px solid rgba(255, 184, 130, 0.14);
}
.sidebar-foot a { color: var(--brand-orange-glow); display: inline-block; margin-top: .35rem; }

.main {
  padding: 2rem clamp(1.5rem, 4vw, 3rem) 4rem;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 2rem;
}
.topbar h1 { font-family: var(--font-display); font-size: var(--fs-4xl); margin: 0; }
.topbar p { color: var(--ink-mute); margin: 4px 0 0; font-size: var(--fs-sm); }
.topbar-actions { display: flex; align-items: center; gap: .65rem; }
.signed-in {
  display: flex; align-items: center; gap: .65rem;
  padding: .4rem .65rem .4rem .4rem;
  background: var(--dash-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600;
}
.signed-in .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-chocolate));
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-size: 14px;
}

/* Stat cards */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.kpi {
  background: var(--dash-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-label { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-mute); }
.kpi-value { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.5rem); margin: .35rem 0 .25rem; line-height: 1.1; }
.kpi-trend { display: inline-flex; align-items: center; gap: .25rem; font-size: var(--fs-xs); font-weight: 700; }
.kpi-trend.up { color: #1F7A3A; }
.kpi-trend.dn { color: #B33B1A; }
.kpi-trend.flat { color: var(--ink-mute); }
.kpi-trend svg { width: 14px; height: 14px; }

.panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; margin-bottom: 2rem; }
.panel {
  background: var(--dash-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.panel h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-lg); margin: 0 0 .25rem; color: var(--ink); }
.panel .panel-meta { font-size: var(--fs-xs); color: var(--ink-mute); margin-bottom: 1rem; }
.panel.full { grid-column: 1 / -1; }

/* Bar list */
.bar-list { display: grid; gap: .85rem; }
.bar-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}
.bar-item:last-child { border-bottom: 0; }
.bar-name { font-weight: 700; color: var(--ink); font-size: var(--fs-sm); margin-bottom: 6px; }
.bar-track { width: 100%; height: 8px; background: rgba(229, 100, 30, .10); border-radius: 999px; overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-bright));
  transform-origin: left; transform: scaleX(0);
  transition: transform 1200ms var(--ease-out);
}
.bar-fill.in { transform: scaleX(var(--w, .5)); }
.bar-score { font-family: var(--font-display); color: var(--brand-orange); font-size: 1.4rem; line-height: 1; min-width: 56px; text-align: right; }

/* Activity */
.activity { display: grid; gap: .75rem; }
.activity-item {
  display: grid; grid-template-columns: 36px 1fr auto; gap: .75rem; align-items: start;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child { border-bottom: 0; }
.activity-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-cream-deep), var(--brand-orange-glow));
  display: grid; place-items: center;
  font-family: var(--font-display); color: var(--ink); font-size: 14px;
}
.activity-text { font-size: var(--fs-sm); color: var(--ink); }
.activity-text small { display: block; color: var(--ink-mute); font-size: var(--fs-xs); margin-top: 2px; }
.activity-time { font-size: var(--fs-xs); color: var(--ink-mute); }

/* Table */
.dash-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.dash-table th, .dash-table td { text-align: left; padding: .85rem 1rem; }
.dash-table thead th {
  background: var(--brand-cream-warm);
  font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.dash-table tbody tr { border-bottom: 1px solid var(--line); }
.dash-table tbody tr:hover { background: var(--brand-cream-warm); }
.dash-table tbody tr:last-child { border-bottom: 0; }
.dash-table .pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .65rem;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700;
  color: var(--ink);
}
.dash-table .pill.green { background: rgba(31, 122, 58, 0.10); border-color: rgba(31, 122, 58, 0.20); color: #1F7A3A; }
.dash-table .pill.amber { background: rgba(229, 100, 30, 0.10); border-color: rgba(229, 100, 30, 0.20); color: var(--brand-orange); }
.dash-table .pill.red { background: rgba(179, 59, 26, 0.10); border-color: rgba(179, 59, 26, 0.20); color: #B33B1A; }

.dash-tongues { display: inline-flex; gap: 2px; }
.dash-tongues .tongue { font-size: 16px; }
.dash-tongues { letter-spacing: 2px; }

/* Mobile */
@media (max-width: 980px) {
  .dash-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: .5rem; padding: 1rem; }
  .sidebar-brand { border-bottom: 0; padding: 0; flex-basis: 100%; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: .25rem; }
  .sidebar nav a { padding: .5rem .85rem; }
  .sidebar-section, .sidebar-foot { display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .panels { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .kpi-row { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .dash-table thead { display: none; }
  .dash-table, .dash-table tbody, .dash-table tr, .dash-table td { display: block; width: 100%; }
  .dash-table tr { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .dash-table td { padding: .15rem 0; }
}

/* P1_MARK ihelp + faq */

/* Info-tooltip glyph attached to section headers via [data-help] */
.ihelp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  margin-left: .45rem;
  border-radius: 50%;
  background: var(--brand-cream-warm);
  color: var(--brand-orange);
  font-family: var(--font-body);
  font-size: 11px; font-weight: 800;
  font-style: normal;
  cursor: help;
  position: relative;
  vertical-align: middle;
  border: 1px solid var(--line-strong);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  user-select: none;
}
.ihelp:hover, .ihelp:focus { background: var(--brand-orange); color: #fff; outline: none; }
.ihelp-pop {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  background: #2A0F00;
  color: #F2DDC1;
  padding: .65rem .85rem;
  border-radius: 8px;
  font-size: 12.5px; font-weight: 500;
  width: 320px;
  text-align: left;
  line-height: 1.45;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: normal;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-style: normal;
  font-family: var(--font-body);
  letter-spacing: 0;
}
.ihelp-pop::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2A0F00;
}
.ihelp:hover .ihelp-pop, .ihelp:focus .ihelp-pop {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, 0);
}
@media (max-width: 720px) {
  .ihelp-pop {
    left: auto; right: -4px;
    transform: translate(0, 4px);
    width: min(280px, calc(100vw - 32px));
  }
  .ihelp-pop::after { left: auto; right: 10px; transform: none; }
  .ihelp:hover .ihelp-pop, .ihelp:focus .ihelp-pop { transform: translate(0, 0); }
}

/* FAQ accordion */
.faq-list { display: grid; gap: .65rem; }
.faq-item {
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: .9rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brand-orange);
  line-height: 1;
  transition: transform var(--t-fast) var(--ease);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { background: #fff; border-bottom: 1px solid var(--line); }
.faq-item .faq-body {
  padding: .85rem 1.1rem 1.1rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.55;
  background: #fff;
}
.faq-item .faq-body p { margin: 0 0 .55rem; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }
.faq-item .faq-body code {
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .05rem .35rem;
  font-size: 12px;
}

/* P2_MARK p2-clickability */
/* P2 — clickable row affordance (signals "this row will open detail") */
.dash-table tbody tr[data-detail] { cursor: pointer; }
.dash-table tbody tr[data-detail]:hover { background: var(--brand-cream-warm); }
.dash-table tbody tr[data-detail]:focus-within { outline: 2px solid rgba(229, 100, 30, 0.45); outline-offset: -2px; }

/* P2 — System health reference rows: NO drill, NO hover, NO pointer */
.dash-table.system-health tbody tr,
.dash-table.system-health tbody tr:hover {
  background: transparent !important;
  cursor: default !important;
}
.dash-table.system-health tbody tr:focus-within { outline: none; }

/* P2 — Action button bar inside detail modal */
.modal-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.modal-actions .btn-mini { font-size: var(--fs-xs); }

/* P2 — Toast that pops at the top of the modal-card */
.modal-toast {
  position: sticky; top: -2rem;
  margin: -1.5rem -2.25rem 1rem;
  padding: .75rem 1rem;
  background: linear-gradient(135deg, rgba(31,122,58,0.92), rgba(31,122,58,0.78));
  color: #fff;
  font-size: var(--fs-sm); font-weight: 700;
  text-align: center;
  border-radius: 0 0 .5rem .5rem;
  box-shadow: 0 4px 12px rgba(31,122,58,0.18);
  animation: toast-in .25s var(--ease-out);
  z-index: 10;
}
@keyframes toast-in {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* P2 — Modal section headers + status pills inside templates */
.sl-modal-body h4 {
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-sm); margin: 1rem 0 .35rem;
  color: var(--ink);
}
.sl-modal-body h4:first-child { margin-top: 0; }
.sl-modal-body .pill {
  display: inline-flex; align-items: center;
  padding: .15rem .55rem; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700;
  background: var(--brand-cream-warm); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.sl-modal-body .pill.green  { background: rgba(31, 122, 58, 0.10);  color: #1F7A3A;            border-color: rgba(31, 122, 58, 0.20); }
.sl-modal-body .pill.amber  { background: rgba(229, 100, 30, 0.10); color: var(--brand-orange);border-color: rgba(229, 100, 30, 0.20); }
.sl-modal-body .pill.red    { background: rgba(179, 59, 26, 0.10);  color: #B33B1A;            border-color: rgba(179, 59, 26, 0.20); }

/* P3_MARK p3-visualizations */
/* Panel controls bar (view toggle + N selector) */
.panel-controls {
  display: flex; flex-wrap: wrap;
  gap: .75rem; align-items: center;
  margin: -.25rem 0 .5rem;
}
.panel-control-group { display: inline-flex; align-items: center; gap: .35rem; }
.panel-control-label {
  font-size: var(--fs-xs); letter-spacing: .04em;
  color: var(--ink-mute); font-weight: 600;
}
.panel-control-select {
  padding: .35rem .55rem .35rem .65rem;
  font: inherit; font-size: var(--fs-xs); font-weight: 700;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--brand-cream-warm);
  color: var(--ink);
  cursor: pointer;
}
.panel-toggle {
  display: inline-flex;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.panel-toggle-btn {
  padding: .3rem .8rem;
  border: 0; background: transparent;
  font: inherit; font-size: var(--fs-xs); font-weight: 700;
  color: var(--ink-mute);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.panel-toggle-btn:hover { color: var(--ink); }
.panel-toggle-btn.active { background: var(--brand-orange); color: #fff; }

/* Pie chart container */
.pie-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: .75rem;
}
.pie-svg { width: 100%; max-width: 220px; height: auto; display: block; }
.pie-svg path { transition: transform .15s var(--ease); transform-origin: center; }
.pie-svg path:hover { transform: scale(1.03); }
.pie-legend { display: grid; gap: .4rem; }
.pie-legend-item {
  display: grid; grid-template-columns: 14px 1fr auto;
  gap: .55rem; align-items: center;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.pie-swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.pie-legend-name { font-weight: 700; }
.pie-legend-value {
  font-family: var(--font-display);
  color: var(--brand-orange);
  font-size: 1.05rem; line-height: 1;
}
@media (max-width: 720px) {
  .pie-wrap { grid-template-columns: 1fr; justify-items: center; }
  .pie-svg  { max-width: 240px; }
  .pie-legend { width: 100%; }
}

/* Rating-distribution bar-items become clickable (W20) */
.bar-item[data-detail] {
  cursor: pointer;
  padding: .55rem .5rem .55rem 0;
  margin-right: -.5rem;
  border-radius: 6px;
  transition: background var(--t-fast) var(--ease);
}
.bar-item[data-detail]:hover { background: var(--brand-cream-warm); }
.bar-item[data-detail]:focus  { outline: 2px solid rgba(229, 100, 30, 0.45); outline-offset: -2px; }

/* P4_MARK p4-settings-polish */
/* P4 — Settings explainer paragraph block (used in Danger zone Pause copy) */
.settings-explainer {
  padding: .85rem 0 1rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}
.settings-explainer p { margin: 0 0 .6rem; }
.settings-explainer p:last-child { margin-bottom: 0; }
.settings-explainer strong { color: var(--ink); font-weight: 700; }
.settings-explainer a { color: var(--brand-orange); font-weight: 600; }
.settings-explainer .explainer-note {
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  margin-top: .35rem;
}

/* P4 — Cuisine select inherits .settings-row input styling but we want the
   optgroup labels to render cleanly across browsers */
.settings-row select optgroup {
  font-weight: 700;
  color: var(--ink);
  background: var(--brand-cream-warm);
}
.settings-row select option {
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  padding: .2rem 0;
}

/* P6_MARK p6-offer-composer */

/* P6 — Offer Composer master-detail layout */
.offer-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (max-width: 980px) {
  .offer-workspace { grid-template-columns: 1fr; }
}

.offer-list-panel, .offer-composer-panel {
  background: var(--dash-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  min-height: 540px;
}

.offer-list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .85rem;
}
.offer-list-header h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-lg); margin: 0; color: var(--ink);
}
.offer-list { display: grid; gap: .55rem; }
.offer-card {
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .85rem;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.offer-card:hover { border-color: var(--line-strong); }
.offer-card.active {
  background: #fff;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(229, 100, 30, 0.12);
}
.offer-card-name {
  font-weight: 700; font-size: var(--fs-sm); color: var(--ink);
  margin: 0 0 .2rem;
}
.offer-card-meta {
  font-size: var(--fs-xs); color: var(--ink-mute);
  display: flex; gap: .5rem; flex-wrap: wrap;
  align-items: center;
}
.offer-card-stats {
  margin-top: .35rem; display: flex; gap: .85rem;
  font-size: var(--fs-xs); color: var(--ink-soft);
}
.offer-card-stats strong { color: var(--ink); }

/* Composer */
.composer { display: grid; gap: 1.1rem; }
.composer-section { display: grid; gap: .5rem; }
.composer-section > h4 {
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-sm); color: var(--ink);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0;
}
.composer-section-hint {
  font-size: var(--fs-xs); color: var(--ink-mute);
  margin: 0 0 .2rem;
}
.composer input[type="text"],
.composer input[type="number"],
.composer input[type="date"],
.composer textarea,
.composer select {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--brand-cream-warm);
  color: var(--ink);
  outline: none;
  font: inherit;
  font-size: var(--fs-sm);
}
.composer input:focus,
.composer textarea:focus,
.composer select:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(229, 100, 30, 0.18);
}
.composer textarea { min-height: 56px; resize: vertical; }
.composer .row-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: .65rem;
}
.composer .row-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem;
}

/* Mechanics radio group */
.mechanics-group {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .4rem;
}
.mechanics-option {
  display: flex; align-items: center; gap: .35rem;
  padding: .5rem .65rem;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.mechanics-option input { margin: 0; accent-color: var(--brand-orange); }
.mechanics-option.selected {
  background: #fff; border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px rgba(229, 100, 30, 0.12);
}

/* Preset chips */
.preset-chips {
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.preset-chip {
  padding: .35rem .65rem;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.preset-chip:hover { color: var(--ink); }
.preset-chip.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

/* Advanced expander */
.composer-advanced {
  margin-top: .25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-cream-warm);
}
.composer-advanced summary {
  cursor: pointer;
  padding: .55rem .75rem;
  font-size: var(--fs-xs); font-weight: 700;
  color: var(--ink-soft);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.composer-advanced summary::-webkit-details-marker { display: none; }
.composer-advanced summary::after {
  content: "+"; color: var(--brand-orange); font-family: var(--font-display);
  font-size: 18px; line-height: 1;
}
.composer-advanced[open] summary::after { content: "–"; }
.composer-advanced[open] summary { border-bottom: 1px solid var(--line); background: #fff; }
.composer-advanced .advanced-body {
  padding: .75rem;
  background: #fff;
  display: grid; gap: .55rem;
}
.advanced-row {
  display: grid; grid-template-columns: 110px 1fr 70px;
  gap: .55rem; align-items: center;
  font-size: var(--fs-xs);
}
.advanced-row label { color: var(--ink-soft); font-weight: 600; }
.advanced-row .range-pair {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: .35rem; align-items: center;
}
.advanced-row input[type="number"] {
  width: 100%; padding: .25rem .35rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--brand-cream-warm);
  font-size: var(--fs-xs);
  text-align: center;
}
.advanced-row .range-dash {
  color: var(--ink-mute);
  font-size: var(--fs-xs);
  text-align: center;
}
.advanced-row .axis-est {
  text-align: right; font-weight: 700;
  color: var(--brand-orange);
}

/* Recurrence radio group */
.recurrence-group {
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.recurrence-option {
  padding: .35rem .7rem;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}
.recurrence-option.active {
  background: var(--brand-orange); border-color: var(--brand-orange); color: #fff;
}
.day-of-week-row {
  display: flex; gap: .25rem; flex-wrap: wrap;
}
.day-of-week-chip {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 700;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-mute);
}
.day-of-week-chip.active {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}

/* Delivery channels */
.channel-toggles {
  display: grid; gap: .4rem;
}
.channel-toggle {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .65rem;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: var(--fs-sm);
  cursor: pointer;
}
.channel-toggle.active {
  background: #fff; border-color: var(--brand-orange);
}
.channel-toggle .ch-name { font-weight: 700; color: var(--ink); }
.channel-toggle .ch-meta { font-size: var(--fs-xs); color: var(--ink-mute); display: block; }

/* Reach estimate display */
.reach-box {
  background: linear-gradient(135deg, rgba(229, 100, 30, 0.08), rgba(247, 123, 42, 0.04));
  border: 1px solid rgba(229, 100, 30, 0.24);
  border-radius: 10px;
  padding: .85rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.reach-box-label {
  font-size: var(--fs-xs); letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 700;
}
.reach-box-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  color: var(--brand-orange);
  line-height: 1;
}
.reach-box-meta {
  font-size: var(--fs-xs); color: var(--ink-mute);
  text-align: right;
}

/* Diner-card preview */
.composer-preview {
  background: linear-gradient(180deg, #FFF8F1, #FCEFDD);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 1rem;
}
.composer-preview-label {
  font-size: var(--fs-xs); letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 700;
  margin-bottom: .55rem;
}
.diner-card-mock {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(60, 24, 0, 0.10);
  padding: 1rem;
  display: grid; gap: .35rem;
}
.diner-card-restaurant {
  font-size: var(--fs-xs); color: var(--ink-mute);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 700;
}
.diner-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--ink); line-height: 1.15;
}
.diner-card-tagline {
  font-size: var(--fs-sm); color: var(--ink-soft); margin: 0;
}
.diner-card-cta {
  align-self: start;
  margin-top: .35rem;
  padding: .45rem .9rem;
  background: var(--brand-orange);
  color: #fff;
  font-size: var(--fs-xs); font-weight: 700;
  border-radius: 999px;
  display: inline-block;
}

/* Composer footer (save / cancel / pause / end early) */
.composer-footer {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}
.composer-footer .btn-mini.primary { padding: .55rem 1.2rem; }
.composer-footer .composer-status {
  margin-right: auto;
  font-size: var(--fs-xs); color: var(--ink-mute);
}

/* Empty state in composer */
.composer-empty {
  display: grid; place-items: center; min-height: 500px;
  text-align: center; padding: 2rem;
}
.composer-empty-icon {
  font-size: 48px; line-height: 1; margin-bottom: .75rem;
}
.composer-empty-headline {
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-lg); color: var(--ink); margin: 0 0 .25rem;
}
.composer-empty-body {
  font-size: var(--fs-sm); color: var(--ink-mute);
  max-width: 320px; line-height: 1.5;
}

/* P7_MARK p7-composer-followthrough */
/* P7 — Preview-as-diner phone frame */
.diner-preview-shell {
  width: 380px;
  max-width: 92vw;
  background: #000;
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.40);
  margin: 0 auto;
}
.diner-preview-screen {
  background: var(--brand-cream, #FBF6EE);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  height: 640px;
  display: flex; flex-direction: column;
}
.diner-preview-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px 4px;
  font-size: 12px; font-weight: 700; color: #2A0F00;
}
.diner-preview-statusbar .right { display: inline-flex; gap: 4px; align-items: center; opacity: 0.7; }
.diner-preview-statusbar .signal,
.diner-preview-statusbar .wifi,
.diner-preview-statusbar .battery {
  width: 14px; height: 10px; display: inline-block;
  border-radius: 2px; background: currentColor;
}
.diner-preview-statusbar .battery { width: 22px; }

.diner-preview-header {
  padding: .35rem 1.1rem .85rem;
  border-bottom: 1px solid rgba(60, 24, 0, .08);
}
.diner-preview-header h4 {
  font-family: var(--font-display, 'Fredoka'); font-weight: 700;
  font-size: 1.6rem; color: var(--brand-chocolate, #3D1800);
  margin: 0 0 .1rem;
}
.diner-preview-header p {
  margin: 0; font-size: var(--fs-xs); color: var(--ink-mute);
}
.diner-preview-feed {
  flex: 1; overflow-y: auto;
  padding: .85rem 1rem 1.5rem;
  display: grid; gap: .85rem;
}

/* Diner card — the for-you offer card the diner actually sees */
.diner-feed-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(60, 24, 0, .10);
  border: 1px solid rgba(60, 24, 0, 0.06);
}
.diner-feed-card.spotlight {
  border-color: var(--brand-orange);
  box-shadow: 0 4px 22px rgba(229, 100, 30, .26);
}
.diner-feed-card-photo {
  height: 130px;
  background: linear-gradient(135deg, #F77B2A, #E5641E 50%, #C04500);
  display: grid; place-items: center;
  position: relative;
}
.diner-feed-card-photo .dish-emoji {
  font-size: 56px; line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}
.diner-feed-card-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.65); color: #fff;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.diner-feed-card-body {
  padding: .85rem 1rem 1rem;
}
.diner-feed-card-restaurant {
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 700; margin-bottom: 2px;
}
.diner-feed-card-title {
  font-family: var(--font-display, 'Fredoka'); font-weight: 700;
  font-size: 1.1rem; color: var(--ink); line-height: 1.15;
  margin: 0 0 .2rem;
}
.diner-feed-card-tagline {
  margin: 0 0 .55rem;
  font-size: 13px; color: var(--ink-soft); line-height: 1.4;
}
.diner-feed-card-why {
  background: var(--brand-cream-warm);
  border-radius: 8px;
  padding: .45rem .6rem;
  font-size: 11px; color: var(--ink-soft);
  line-height: 1.35;
  margin: 0 0 .65rem;
}
.diner-feed-card-why strong { color: var(--brand-orange); }
.diner-feed-card-cta {
  display: block; width: 100%;
  padding: .55rem .9rem;
  background: var(--brand-orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  cursor: pointer;
  text-align: center;
}

/* Phone modal sizing inside the existing sl-modal */
.sl-modal.preview-as-diner .sl-modal-card {
  max-width: 480px;
  padding: 1rem 1rem 1.25rem;
}
.sl-modal.preview-as-diner .sl-modal-card h2 {
  font-family: var(--font-body, sans-serif);
  font-size: 1.15rem;
  margin-bottom: .85rem;
}
.diner-preview-caption {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  margin-top: .85rem;
  line-height: 1.5;
}

/* Composer prefill toast notice — when we land in the composer with audience pre-filled */
.composer-prefill-notice {
  background: rgba(31, 122, 58, 0.10);
  border: 1px solid rgba(31, 122, 58, 0.30);
  border-radius: 8px;
  padding: .55rem .8rem;
  font-size: var(--fs-xs);
  color: #1F7A3A;
  font-weight: 600;
  display: flex; align-items: center; gap: .55rem;
}
.composer-prefill-notice::before {
  content: "✓";
  background: #1F7A3A;
  color: #fff;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}

/* P8_MARK p8-dow-heatmap */
/* P8 — Group Dining day-of-week heatmap */
.dow-heatmap {
  display: grid;
  grid-template-columns: 100px repeat(7, 1fr);
  gap: 4px;
  margin: 1rem 0 .25rem;
}
.dow-cell {
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  padding: .7rem .25rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  min-height: 36px;
  outline: none;
  user-select: none;
}
.dow-cell:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(60, 24, 0, 0.18);
}
.dow-cell:focus-visible { box-shadow: 0 0 0 3px rgba(229, 100, 30, 0.45); }
.dow-cell.row-label,
.dow-cell.col-header {
  background: transparent;
  cursor: default;
  color: var(--ink-mute);
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .4rem .25rem;
}
.dow-cell.row-label  { justify-content: flex-start; text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); color: var(--ink); }
.dow-cell.col-header { padding-bottom: 0; }
.dow-cell.row-label:hover, .dow-cell.col-header:hover { transform: none; box-shadow: none; }

.dow-legend {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-xs); color: var(--ink-mute);
  margin: .35rem 0 .25rem;
}
.dow-legend-ramp {
  width: 140px; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #FCEFDD, #E5641E);
}

/* Heatmap insights */
.heatmap-insights {
  display: grid; gap: .55rem;
  margin-top: 1.1rem;
}
.heatmap-insight {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1rem; align-items: center;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-orange);
  border-radius: 8px;
  padding: .7rem .9rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.45;
}
.heatmap-insight strong { color: var(--ink); }
.heatmap-insight em {
  font-style: normal;
  color: var(--brand-orange);
  font-weight: 700;
}
.heatmap-insight .btn-mini { white-space: nowrap; }

@media (max-width: 720px) {
  .dow-heatmap { grid-template-columns: 80px repeat(7, 1fr); gap: 3px; }
  .dow-cell { font-size: var(--fs-xs); padding: .5rem .15rem; }
  .heatmap-insight { grid-template-columns: 1fr; }
}

/* P9_MARK p9-food-waste-toolkit */

/* P9·A — Waste-risk pill */
.risk-pill {
  display: inline-flex; align-items: center;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700;
  border: 1px solid transparent;
  cursor: help;
}
.risk-pill.low    { background: rgba(31, 122, 58, 0.12); color: #1F7A3A;            border-color: rgba(31, 122, 58, 0.24); }
.risk-pill.watch  { background: rgba(229, 100, 30, 0.12); color: var(--brand-orange); border-color: rgba(229, 100, 30, 0.24); }
.risk-pill.high   { background: rgba(179, 59, 26, 0.12); color: #B33B1A;            border-color: rgba(179, 59, 26, 0.24); }

/* P9·D — Portion mini-bar (3 segments: too-much / right / too-little) */
.portion-bar {
  display: flex; height: 8px; width: 90px;
  border-radius: 999px; overflow: hidden;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  cursor: help;
}
.portion-bar .seg { height: 100%; }
.portion-bar .seg.too-much   { background: #B33B1A; }
.portion-bar .seg.just-right { background: #1F7A3A; }
.portion-bar .seg.too-little { background: #6FA8C7; }
.portion-bar.no-data { background: repeating-linear-gradient(45deg, var(--brand-cream-warm) 0 6px, var(--line) 6px 7px); }

.portion-meta {
  display: flex; gap: .35rem; font-size: 10px; color: var(--ink-mute);
  margin-top: 3px; font-weight: 600;
}
.portion-meta .pm-too-much   { color: #B33B1A; }
.portion-meta .pm-just-right { color: #1F7A3A; }
.portion-meta .pm-too-little { color: #6FA8C7; }

/* P9·B — Menu × Audience gap chart (divergent bars on a centerline) */
.gap-chart {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  gap: .35rem .65rem;
  margin: 1rem 0 .25rem;
}
.gap-axis-name {
  font-size: var(--fs-sm); font-weight: 700; color: var(--ink);
  display: flex; align-items: center;
  padding-right: .35rem;
}
.gap-axis-track {
  position: relative; height: 28px;
  background: linear-gradient(to right, rgba(60, 24, 0, 0.04), rgba(60, 24, 0, 0.04));
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.gap-axis-track::before {
  content: ""; position: absolute;
  left: 50%; top: 4px; bottom: 4px; width: 1px;
  background: var(--line-strong);
  transform: translateX(-0.5px);
}
.gap-axis-fill {
  position: absolute; top: 4px; bottom: 4px;
  border-radius: 4px;
  transition: width .4s var(--ease-out);
}
.gap-axis-fill.over   { background: linear-gradient(90deg, #C04500, var(--brand-orange)); right: 50%; }
.gap-axis-fill.under  { background: linear-gradient(90deg, #6FA8C7, #4A89A8);              left: 50%; }
.gap-axis-readout {
  font-size: var(--fs-sm); font-weight: 700;
  display: flex; align-items: center; gap: .35rem;
}
.gap-axis-readout .gap-num { font-family: var(--font-display); font-size: 1rem; }
.gap-axis-readout.over  .gap-num { color: var(--brand-orange); }
.gap-axis-readout.under .gap-num { color: #4A89A8; }
.gap-axis-readout.balanced { color: var(--ink-mute); font-weight: 600; }

.gap-chart-legend {
  display: flex; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--ink-mute);
  margin-top: .25rem; padding: 0 110px;
}
.gap-chart-legend .label-under, .gap-chart-legend .label-over {
  display: inline-flex; align-items: center; gap: .35rem;
}
.gap-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.gap-swatch.under { background: #6FA8C7; }
.gap-swatch.over  { background: var(--brand-orange); }

/* P9·B — Insights below the gap chart (reuses heatmap-insight visual treatment) */
.gap-insights { display: grid; gap: .55rem; margin-top: 1rem; }
.gap-insight {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  align-items: center;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-orange);
  border-radius: 8px;
  padding: .65rem .85rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.45;
}
.gap-insight strong { color: var(--ink); }
.gap-insight em {
  font-style: normal; color: var(--brand-orange); font-weight: 700;
}
.gap-insight.under   { border-left-color: #4A89A8; }
.gap-insight.under em { color: #4A89A8; }
.gap-insight .btn-mini { white-space: nowrap; }

/* P9·C — Tonight-only button */
.btn-mini.tonight-only {
  background: linear-gradient(135deg, #B33B1A, var(--brand-orange));
  color: #fff; border-color: transparent;
  display: inline-flex; align-items: center; gap: .35rem;
}
.btn-mini.tonight-only:hover { background: linear-gradient(135deg, #962F12, #D45418); }
.btn-mini.tonight-only::before {
  content: "🔥"; filter: grayscale(.2); font-size: 13px;
}

/* P9·E — Smart purchasing coming-soon panel (mirrors Kitchen Insights pattern) */
.smart-purchasing {
  background:
    repeating-linear-gradient(45deg, rgba(74, 137, 168, 0.05) 0 12px, transparent 12px 24px),
    var(--surface, #fff);
  border-style: dashed;
}
.smart-purchasing h3 { opacity: .85; }
.purchasing-list { display: grid; gap: .55rem; margin-top: .65rem; opacity: .55; pointer-events: none; }
.purchasing-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1rem; align-items: center;
  padding: .55rem .75rem;
  background: var(--brand-cream-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: var(--fs-sm);
}
.purchasing-row .delta {
  font-family: var(--font-display);
  font-size: 1.1rem;
  min-width: 64px; text-align: right;
}
.purchasing-row .delta.down { color: #1F7A3A; }
.purchasing-row .delta.up   { color: var(--brand-orange); }

/* P9_4_MARK segment-dish-breakdown */
/* P9.4 — Segment dish breakdown (rendered in the heatmap-cell modal) */
.segment-breakdown {
  margin-top: 1rem;
  display: grid; gap: .35rem;
}
.segment-breakdown-header {
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
  margin: .85rem 0 .35rem;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem;
}
.segment-breakdown-header small {
  font-weight: 500; color: var(--ink-mute); font-size: var(--fs-xs);
}
.segment-dish-row {
  display: grid; grid-template-columns: 1fr 80px 32px;
  gap: .65rem; align-items: center;
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.segment-dish-row:last-child { border-bottom: 0; }
.segment-dish-name { color: var(--ink); }
.segment-dish-bar {
  background: var(--brand-cream-warm);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}
.segment-dish-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #F77B2A, var(--brand-orange));
  border-radius: 999px;
}
.segment-dish-count {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brand-orange);
  text-align: right;
  line-height: 1;
}
.segment-breakdown-empty {
  font-size: var(--fs-xs); color: var(--ink-mute);
  font-style: italic;
  padding: .5rem 0;
}

/* P9_6_MARK heatmap-detail-panel */
.heatmap-detail-panel {
  display: none;
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line, rgba(60,24,0,0.12));
  border-radius: 12px;
  background: var(--bg-soft, #FFF8F1);
}
.heatmap-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: .35rem;
  font-size: var(--fs-sm); color: var(--ink);
}
.heatmap-detail-header strong { color: var(--brand-chocolate, #3D1800); }
.heatmap-detail-meta {
  font-size: var(--fs-xs); color: var(--ink-mute); margin-bottom: .75rem;
}
.heatmap-detail-actions { margin-top: .75rem; }

/* P10_A_MARK financial-tab */
/* Financial tab — Coming-Soon banner inherits .panel + adds a tint */
.financial-banner {
  background: linear-gradient(180deg, rgba(229,100,30,0.06), rgba(229,100,30,0.02));
  border-color: rgba(229,100,30,0.18);
}

.financial-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line, rgba(60,24,0,0.12));
  border-radius: 10px;
  background: var(--bg, #fff);
}
table.financial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
table.financial-table thead th {
  text-align: left;
  font-weight: 700;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: var(--fs-xs);
  padding: .85rem 1rem;
  background: rgba(60,24,0,0.03);
  border-bottom: 1px solid var(--line, rgba(60,24,0,0.12));
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
table.financial-table thead th.sortable {
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
table.financial-table thead th.sortable:hover { background: rgba(229,100,30,0.06); color: var(--ink); }
table.financial-table thead th .sort-arrow {
  display: inline-block;
  width: 0; height: 0;
  vertical-align: middle;
  margin-left: .35rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: .4;
}
table.financial-table thead th.sorted-desc .sort-arrow {
  border-top: 5px solid var(--brand-orange, #E5641E); opacity: 1;
}
table.financial-table thead th.sorted-asc .sort-arrow {
  border-bottom: 5px solid var(--brand-orange, #E5641E); opacity: 1;
}
table.financial-table tbody td {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(60,24,0,0.06);
  color: var(--ink);
  vertical-align: middle;
}
table.financial-table tbody tr:last-child td { border-bottom: none; }
table.financial-table tbody tr:hover { background: rgba(229,100,30,0.04); }
table.financial-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.financial-table .trend-up   { color: #1F7A3A; font-weight: 700; }
table.financial-table .trend-down { color: #B33B1A; font-weight: 700; }
table.financial-table .trend-flat { color: var(--ink-mute); font-weight: 700; }

/* P10_A1_MARK financial-range-strip */
.financial-range-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .75rem 1rem;
  padding: .85rem 1.1rem;
  margin-bottom: 1rem;
  background: var(--bg, #fff);
  border: 1px solid var(--line, rgba(60,24,0,0.12));
  border-radius: 12px;
}
.financial-range-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.financial-range-presets {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line, rgba(60,24,0,0.12));
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-soft, #FFF8F1);
}
.financial-range-btn {
  appearance: none;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line, rgba(60,24,0,0.12));
  padding: .5rem .95rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.financial-range-btn:last-child { border-right: none; }
.financial-range-btn:hover { background: rgba(229,100,30,0.08); color: var(--ink); }
.financial-range-btn.active {
  background: var(--brand-orange, #E5641E);
  color: #fff;
}
.financial-range-btn.active:hover { background: var(--brand-orange, #E5641E); }
.financial-range-custom-form {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-sm); color: var(--ink-mute);
}
.financial-range-custom-form[hidden] { display: none; }
.financial-range-custom-form input[type="number"] {
  width: 72px;
  padding: .35rem .55rem;
  border: 1px solid var(--line, rgba(60,24,0,0.18));
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.financial-range-custom-form input[type="number"]:focus {
  outline: none;
  border-color: var(--brand-orange, #E5641E);
  box-shadow: 0 0 0 3px rgba(229,100,30,0.18);
}
.financial-range-meta {
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--ink-mute);
}
.financial-range-meta strong { color: var(--ink); font-weight: 700; }
.financial-range-compare {
  display: inline-block;
  margin-left: .35rem;
  padding-left: .65rem;
  border-left: 1px solid var(--line, rgba(60,24,0,0.18));
  color: var(--ink-mute);
  font-size: var(--fs-xs);
}

/* P10_B_MARK margin-per-dish */
/* COGS badge — sits next to the COGS dollar value */
.cogs-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: .4rem;
  vertical-align: middle;
  white-space: nowrap;
}
.cogs-badge.actual {
  color: #1F7A3A;
  background: rgba(31,122,58,0.10);
}
.cogs-badge.estimate {
  color: var(--brand-orange, #E5641E);
  background: rgba(229,100,30,0.10);
}
.cogs-not-set {
  color: var(--ink-mute);
  font-style: italic;
  font-size: var(--fs-xs);
}
.cogs-set-link {
  color: var(--brand-orange, #E5641E);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-size: var(--fs-xs);
}
.cogs-set-link:hover { opacity: .8; }

/* Margin % colored pills */
.margin-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}
.margin-tier-high  { background: rgba(31,122,58,0.12);   color: #1F7A3A; }
.margin-tier-good  { background: rgba(229,100,30,0.12);  color: var(--brand-orange, #E5641E); }
.margin-tier-watch { background: rgba(214,158,46,0.14);  color: #946600; }
.margin-tier-low   { background: rgba(179,59,26,0.12);   color: #B33B1A; }

/* Legend row under the margin table */
.margin-legend {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .85rem;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(60,24,0,0.06);
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}
.margin-legend .legend-item {
  display: inline-flex; align-items: center; gap: .35rem;
}
.margin-legend .legend-meta {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}

/* P10_B1_MARK th-num-right-align */
table.financial-table thead th.num { text-align: right; }

/* P10_B2_MARK menu-engineering-matrix */
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 760px) {
  .matrix-grid { grid-template-columns: 1fr; }
}
.matrix-cell {
  padding: 1.1rem 1.15rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(60,24,0,0.12));
  background: var(--bg, #fff);
  display: flex; flex-direction: column;
  min-height: 220px;
}
.matrix-cell-header {
  display: flex; align-items: flex-start; gap: .65rem;
  padding-bottom: .65rem;
  margin-bottom: .65rem;
  border-bottom: 1px solid rgba(60,24,0,0.06);
}
.matrix-cell-header > div { flex: 1; min-width: 0; }
.matrix-icon {
  font-size: 1.6rem;
  line-height: 1;
  width: 28px; text-align: center;
}
.matrix-cell-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.matrix-cell-sub {
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  letter-spacing: .02em;
  margin-top: 2px;
}
.matrix-count {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(60,24,0,0.06);
  color: var(--ink-mute);
}
.matrix-dish-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.matrix-dish-list li {
  font-size: var(--fs-sm);
  color: var(--ink);
  padding: .25rem 0;
  border-bottom: 1px dashed rgba(60,24,0,0.05);
}
.matrix-dish-list li:last-child { border-bottom: none; }
.matrix-dish-list .matrix-dish-name { font-weight: 600; }
.matrix-dish-list .matrix-dish-meta {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.matrix-action {
  margin-top: .9rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(60,24,0,0.06);
  font-size: var(--fs-sm);
  color: var(--ink-mute);
  line-height: 1.45;
}
.matrix-action strong { color: var(--ink); }
.matrix-empty {
  text-align: center;
  padding: 1rem .5rem;
  color: var(--ink-mute);
  font-size: var(--fs-xs);
  font-style: italic;
}
/* Quadrant tints (P10·C — deepened contrast) */
.matrix-stars {
  background: rgba(31,122,58,0.13);
  border-color: rgba(31,122,58,0.38);
}
.matrix-stars .matrix-icon  { color: #1F7A3A; }
.matrix-stars .matrix-count { background: rgba(31,122,58,0.22); color: #1F5C2E; }
.matrix-stars .matrix-cell-title { color: #1F5C2E; }

.matrix-puzzles {
  background: rgba(229,100,30,0.13);
  border-color: rgba(229,100,30,0.38);
}
.matrix-puzzles .matrix-icon  { color: var(--brand-orange, #E5641E); }
.matrix-puzzles .matrix-count { background: rgba(229,100,30,0.22); color: #B0461A; }
.matrix-puzzles .matrix-cell-title { color: #B0461A; }

.matrix-plowhorses {
  background: rgba(214,158,46,0.18);
  border-color: rgba(214,158,46,0.45);
}
.matrix-plowhorses .matrix-icon  { color: #946600; }
.matrix-plowhorses .matrix-count { background: rgba(214,158,46,0.26); color: #6E4D00; }
.matrix-plowhorses .matrix-cell-title { color: #6E4D00; }

.matrix-dogs {
  background: rgba(120,80,60,0.12);
  border-color: rgba(120,80,60,0.40);
}
.matrix-dogs .matrix-icon  { color: #78503C; }
.matrix-dogs .matrix-count { background: rgba(120,80,60,0.22); color: #563421; }
.matrix-dogs .matrix-cell-title { color: #563421; }

.matrix-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: .85rem;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(60,24,0,0.06);
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}
.matrix-meta strong { color: var(--ink); font-weight: 700; }

/* P10_C_MARK rating-buckets */
/* Rating-bucket stacked bar */
.bucket-bar {
  display: flex;
  width: 100%;
  height: 22px;
  min-width: 180px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(60,24,0,0.05);
  border: 1px solid rgba(60,24,0,0.10);
}
.bucket-bar > .bucket-seg {
  height: 100%;
  transition: filter var(--t-fast) var(--ease);
}
.bucket-bar > .bucket-seg:hover { filter: brightness(1.10); }
.bucket-5_0 { background: #1F7A3A; }
.bucket-4_5 { background: #6BAA70; }
.bucket-4_0 { background: #D69E2E; }
.bucket-3_5 { background: #E5641E; }
.bucket-low { background: #B33B1A; }

.buckets-legend {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .9rem;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(60,24,0,0.06);
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}
.buckets-legend .legend-item { display: inline-flex; align-items: center; gap: .35rem; }
.bucket-swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  vertical-align: middle;
}
.buckets-legend .legend-meta { margin-left: auto; max-width: 50%; text-align: right; }

/* Mean-rating pill - reuses margin tier color scheme */
.mean-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}
.mean-tier-high  { background: rgba(31,122,58,0.14);  color: #1F5C2E; }
.mean-tier-good  { background: rgba(107,170,112,0.20); color: #2F6B36; }
.mean-tier-watch { background: rgba(214,158,46,0.18); color: #6E4D00; }
.mean-tier-low   { background: rgba(229,100,30,0.16); color: #B0461A; }
.mean-tier-bad   { background: rgba(179,59,26,0.14);  color: #B33B1A; }

/* P10_D_MARK roi-panel */
/* Floating bucket-segment tooltip (fixes P10·C native-title flakiness) */
.sl-floating-tooltip {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  padding: .35rem .65rem;
  background: var(--brand-chocolate-deep, #2A0F00);
  color: #FAF6EE;
  border-radius: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translate(-50%, -100%);
  margin-top: -8px;
  opacity: 0;
  transition: opacity 110ms var(--ease);
}
.sl-floating-tooltip.visible { opacity: 1; }
.sl-floating-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  width: 0; height: 0;
  margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--brand-chocolate-deep, #2A0F00);
}
/* Make bucket segments behave better with hover */
.bucket-seg { cursor: help; }

/* ROI thesis banner */
.roi-thesis {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.1rem;
  margin: .25rem 0 1rem;
  background: rgba(229,100,30,0.08);
  border: 1px solid rgba(229,100,30,0.25);
  border-radius: 12px;
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.45;
}
.roi-thesis-icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-orange, #E5641E);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
}
.roi-thesis strong { color: var(--brand-chocolate, #3D1800); }

/* Spotlight cards */
.roi-spotlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) {
  .roi-spotlights { grid-template-columns: 1fr; }
}
.roi-spotlight {
  padding: 1.05rem 1.15rem 1.05rem;
  border-radius: 12px;
  border: 1px solid;
}
.roi-win  { background: rgba(31,122,58,0.10);  border-color: rgba(31,122,58,0.35);  }
.roi-loss { background: rgba(179,59,26,0.10);  border-color: rgba(179,59,26,0.35);  }
.roi-spot-head {
  display: flex; align-items: center; gap: .55rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.roi-win .roi-spot-head  { color: #1F5C2E; }
.roi-loss .roi-spot-head { color: #8C2E14; }
.roi-spot-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
}
.roi-win  .roi-spot-icon { background: rgba(31,122,58,0.20); color: #1F5C2E; }
.roi-loss .roi-spot-icon { background: rgba(179,59,26,0.20); color: #8C2E14; }

.roi-spot-body { margin-top: .55rem; }
.roi-spot-dish {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.roi-spot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin: .75rem 0 .55rem;
}
.roi-spot-cell {
  background: var(--bg, #fff);
  border-radius: 8px;
  padding: .55rem .7rem;
  border: 1px solid rgba(60,24,0,0.08);
}
.roi-spot-cell-label {
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}
.roi-spot-cell-value {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.roi-spot-cell-delta {
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.roi-spot-cell-delta.up   { color: #1F7A3A; }
.roi-spot-cell-delta.down { color: #B33B1A; }
.roi-spot-impact {
  padding: .5rem .7rem;
  background: var(--bg, #fff);
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  border: 1px solid rgba(60,24,0,0.08);
}
.roi-spot-impact .impact-num {
  font-size: var(--fs-lg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-right: .25rem;
}
.roi-spot-impact.win  .impact-num { color: #1F7A3A; }
.roi-spot-impact.loss .impact-num { color: #B33B1A; }
.roi-spot-recommend {
  margin-top: .65rem;
  font-size: var(--fs-xs);
  color: var(--ink-mute);
  line-height: 1.45;
}
.roi-spot-recommend strong { color: var(--ink); }

/* Reuse trend-up / trend-down for the table delta columns */

/* P10_D1_MARK roi-action-buttons */
/* Spotlight CTA buttons */
.roi-spot-cta {
  display: block;
  width: 100%;
  margin-top: .85rem;
  padding: .75rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.roi-spot-cta:hover { transform: translateY(-1px); }
.roi-spot-cta.defend {
  background: #1F7A3A;
  color: #fff;
}
.roi-spot-cta.defend:hover { background: #1F5C2E; }
.roi-spot-cta.recover {
  background: #B33B1A;
  color: #fff;
}
.roi-spot-cta.recover:hover { background: #8C2E14; }

/* Inline ROI table action buttons */
.roi-row-action {
  appearance: none;
  display: inline-block;
  padding: .35rem .7rem;
  border-radius: 6px;
  border: 1px solid;
  font-weight: 700;
  font-size: var(--fs-xs);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.roi-row-action.defend {
  background: rgba(31,122,58,0.10);
  color: #1F5C2E;
  border-color: rgba(31,122,58,0.35);
}
.roi-row-action.defend:hover {
  background: #1F7A3A;
  color: #fff;
}
.roi-row-action.recover {
  background: rgba(179,59,26,0.10);
  color: #8C2E14;
  border-color: rgba(179,59,26,0.35);
}
.roi-row-action.recover:hover {
  background: #B33B1A;
  color: #fff;
}
.roi-row-action.neutral {
  color: var(--ink-mute);
  font-size: var(--fs-xs);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* P10_E_MARK save-list */
.save-list { display: flex; flex-direction: column; gap: .75rem; }
.save-card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(229,100,30,0.30);
  background: rgba(229,100,30,0.06);
  border-radius: 12px;
}
.save-rank {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-orange, #E5641E);
  line-height: 1;
  align-self: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.save-body { display: flex; flex-direction: column; gap: .5rem; }
.save-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem;
}
.save-dish {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
}
.save-meta {
  display: flex; flex-wrap: wrap; gap: .85rem;
  font-size: var(--fs-sm); color: var(--ink-mute);
}
.save-meta strong { color: var(--ink); }
.save-uplift {
  padding: .55rem .85rem;
  background: var(--bg, #fff);
  border: 1px solid rgba(60,24,0,0.10);
  border-radius: 8px;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.save-uplift strong { color: #1F7A3A; font-variant-numeric: tabular-nums; }
.save-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }
.save-action {
  appearance: none;
  padding: .55rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
  border: 1px solid;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.save-action.flags {
  background: rgba(31,122,58,0.08);
  color: #1F5C2E;
  border-color: rgba(31,122,58,0.35);
}
.save-action.flags:hover { background: #1F7A3A; color: #fff; }
.save-action.offer {
  background: rgba(179,59,26,0.08);
  color: #8C2E14;
  border-color: rgba(179,59,26,0.35);
}
.save-action.offer:hover { background: #B33B1A; color: #fff; }

.save-empty {
  padding: 1.25rem 1.4rem;
  background: rgba(31,122,58,0.06);
  border: 1px solid rgba(31,122,58,0.25);
  border-radius: 12px;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.save-empty strong { color: #1F5C2E; }

/* P10_F_MARK jump-to-nav */
.financial-jump-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  padding: .65rem .9rem;
  margin-bottom: 1rem;
  background: var(--bg, #fff);
  border: 1px solid var(--line, rgba(60,24,0,0.12));
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(60,24,0,0.04);
  backdrop-filter: saturate(140%) blur(2px);
}
.financial-jump-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: .35rem;
}
.financial-jump-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  padding: .35rem .8rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-mute);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.financial-jump-btn:hover {
  background: rgba(229,100,30,0.08);
  color: var(--ink);
}
.financial-jump-btn.active {
  background: var(--brand-orange, #E5641E);
  color: #fff;
  border-color: var(--brand-orange, #E5641E);
}
.financial-jump-btn.active:hover { background: var(--brand-orange, #E5641E); }

/* Give each financial panel some scroll-margin so anchor jumps land
   the heading nicely below the sticky nav, not pinned to the very top. */
.tab-panel[data-tab-panel="financial"] .panel[id^="fin-"] {
  scroll-margin-top: 70px;
}

/* P10_F1_MARK sticky-window-picker */
.jump-window-picker {
  position: relative;
  margin-left: auto;
}
.jump-window-btn {
  appearance: none;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem;
  background: var(--bg, #fff);
  border: 2px solid var(--brand-orange, #E5641E);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand-chocolate, #3D1800);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  box-shadow: 0 1px 3px rgba(229,100,30,0.10);
}
.jump-window-btn:hover {
  background: rgba(229,100,30,0.10);
}
.jump-window-btn[aria-expanded="true"] {
  background: var(--brand-orange, #E5641E);
  color: #fff;
}
.jump-window-btn[aria-expanded="true"] .jump-window-caret { color: #fff; }
.jump-window-caret {
  font-size: 12px;
  line-height: 1;
  color: var(--brand-orange, #E5641E);
  font-weight: 800;
}

.jump-window-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 200px;
  padding: .35rem;
  background: var(--bg, #fff);
  border: 1px solid var(--line, rgba(60,24,0,0.16));
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(60,24,0,0.18);
  display: flex; flex-direction: column;
  gap: 2px;
}
.jump-window-pop[hidden] { display: none; }
.jump-window-opt {
  appearance: none;
  text-align: left;
  width: 100%;
  padding: .45rem .65rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.jump-window-opt:hover { background: rgba(229,100,30,0.10); }
.jump-window-opt.active {
  background: var(--brand-orange, #E5641E);
  color: #fff;
}
.jump-window-opt.active:hover { background: var(--brand-orange, #E5641E); }
.jump-window-custom {
  display: flex; align-items: center; gap: .35rem;
  padding: .35rem .55rem;
  margin-top: 4px;
  border-top: 1px solid rgba(60,24,0,0.08);
  font-size: var(--fs-xs);
  color: var(--ink-mute);
}
.jump-window-custom label { font-weight: 600; color: var(--ink); }
.jump-window-custom input[type="number"] {
  width: 56px;
  padding: .25rem .4rem;
  border: 1px solid var(--line, rgba(60,24,0,0.18));
  border-radius: 6px;
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.jump-window-custom input[type="number"]:focus {
  outline: none;
  border-color: var(--brand-orange, #E5641E);
  box-shadow: 0 0 0 2px rgba(229,100,30,0.18);
}
.jump-window-custom .btn-mini { margin-left: auto; padding: .25rem .65rem; }


/* P11_A_MARK saved-offers-preview */
.saved-offers {
  margin-bottom: 1.4rem;
  padding: 1.1rem 1.2rem 1.25rem;
  background: var(--brand-cream, #FFF8F1);
  border: 1px solid var(--line, rgba(61,24,0,0.10));
  border-radius: var(--radius, 18px);
}
.saved-offers-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}
.saved-offers-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl, 1.35rem);
  margin: 0 0 .2rem;
  color: var(--ink, #3D1800);
}
.saved-offers-sub {
  margin: 0;
  font-size: var(--fs-xs, .78rem);
  color: var(--ink-mute, #8A6A50);
  max-width: 60ch;
  line-height: 1.45;
}
.saved-offers-clear { flex: 0 0 auto; white-space: nowrap; }
.saved-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .9rem;
}
.saved-offers-empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px dashed var(--line, rgba(61,24,0,0.18));
  border-radius: var(--radius-sm, 10px);
  color: var(--ink-mute, #8A6A50);
  font-size: var(--fs-sm, .9rem);
  line-height: 1.45;
}
.saved-offers-empty-icon { font-size: 1.7rem; }
.saved-offer-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .9rem .95rem 1rem;
  background: #fff;
  border: 1px solid var(--line, rgba(61,24,0,0.10));
  border-radius: var(--radius-sm, 10px);
  box-shadow: 0 1px 3px rgba(61,24,0,0.05);
}
.saved-offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.saved-offer-name {
  font-weight: 800;
  font-size: var(--fs-md, 1rem);
  color: var(--ink, #3D1800);
  line-height: 1.2;
}
.saved-offer-tagline {
  font-size: var(--fs-sm, .88rem);
  color: var(--ink-mute, #8A6A50);
  margin-top: -.2rem;
}
.saved-offer-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: .3rem;
  margin: .15rem 0 .1rem;
}
.saved-offer-meta > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: .5rem;
  align-items: baseline;
}
.saved-offer-meta dt {
  font-size: var(--fs-xs, .72rem);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--ink-mute, #8A6A50);
  margin: 0;
}
.saved-offer-meta dd {
  margin: 0;
  font-size: var(--fs-sm, .88rem);
  color: var(--ink, #3D1800);
}
.saved-offer-audience {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.saved-offer-chip {
  display: inline-block;
  padding: .18rem .55rem;
  font-size: var(--fs-xs, .72rem);
  font-weight: 600;
  color: var(--brand-chocolate, #3D1800);
  background: var(--brand-cream-warm, #FCEFDD);
  border: 1px solid var(--brand-cream-deep, #F2DDC1);
  border-radius: 999px;
}
.saved-offer-none { font-size: var(--fs-xs, .74rem); color: var(--ink-mute, #8A6A50); font-style: italic; }
.saved-offer-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-top: .15rem;
  padding: .5rem .6rem;
  background: var(--brand-chocolate, #3D1800);
  border-radius: var(--radius-sm, 10px);
}
.saved-offer-code-label {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-xs, .7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-orange-glow, #FFB37A);
}
.saved-offer-code-hint {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
  color: rgba(255,255,255,0.62);
}
.saved-offer-code {
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.35);
  border-radius: 6px;
  padding: .2rem .55rem;
}
.saved-offer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .25rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line, rgba(61,24,0,0.08));
}
.saved-offer-saved-at { font-size: var(--fs-xs, .72rem); color: var(--ink-mute, #8A6A50); }
.saved-offer-action-btns { display: inline-flex; gap: .4rem; }
.saved-offer-remove { color: #B23A2E; }
.saved-offer-remove:hover { background: rgba(178,58,46,0.08); border-color: rgba(178,58,46,0.4); }


/* ============================================================
   P13 — Self-serve signup + tiered access gating ("dither")
   ============================================================ */

/* Locked region: blur contents, block interaction, overlay a veil. */
.sl-lock { position: relative; }
.sl-lock > *:not(.sl-veil) {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.sl-veil {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .55rem;
  text-align: center;
  padding: 2.25rem 1.25rem 1.25rem;
  border-radius: inherit;
  background: rgba(255, 250, 244, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sl-veil-lock {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent, #E8622A);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232,98,42,0.35);
}
.sl-veil-lock svg { width: 20px; height: 20px; }
.sl-veil-title { font-family: var(--font-head, inherit); font-weight: 700; color: var(--ink, #3D1800); font-size: 1.05rem; }
.sl-veil-sub { font-size: .85rem; color: var(--ink-mute, #8A6A50); max-width: 24rem; line-height: 1.45; }
.sl-veil .btn-mini { margin-top: .35rem; }

/* KPI card with no data yet */
.kpi.sl-empty .kpi-value { color: var(--ink-mute, #8A6A50); font-size: 1.15rem; }

/* Signup / claim / verify (reuses .login-card) */
.claim-results { list-style: none; margin: .5rem 0 0; padding: 0; max-height: 210px; overflow-y: auto; border: 1px solid var(--line, #e9e3da); border-radius: 10px; }
.claim-results:empty { display: none; }
.claim-results li { padding: .55rem .7rem; cursor: pointer; border-bottom: 1px solid var(--line, #f0ece5); font-size: .9rem; }
.claim-results li:last-child { border-bottom: 0; }
.claim-results li:hover, .claim-results li.active { background: var(--wash, #FBF4EB); }
.claim-results li .claim-city { color: var(--ink-mute, #8A6A50); font-size: .8rem; }
.claim-hint { font-size: .78rem; color: var(--ink-mute, #8A6A50); margin-top: .3rem; }
.claim-selected { margin-top: .5rem; padding: .55rem .7rem; border: 1px solid var(--accent, #E8622A); border-radius: 10px; background: rgba(232,98,42,0.06); font-size: .9rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.claim-selected button { background: none; border: 0; color: var(--accent, #E8622A); cursor: pointer; font-size: .8rem; }
.signup-error { color: #B23A2E; font-size: .85rem; margin-top: .5rem; }
.signup-ok { color: #2E7D32; font-size: .85rem; margin-top: .5rem; }

/* P13 — signup Terms/Privacy consent row */
.signup-consent {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: .1rem 0 .25rem;
  font-size: .85rem;
  color: var(--ink-mute, #8A6A50);
  line-height: 1.4;
  cursor: pointer;
}
.signup-consent input[type="checkbox"] { margin-top: .15rem; flex: 0 0 auto; }
.signup-consent a { color: var(--accent, #E8622A); }

/* P13 — "Add a new restaurant" option in signup search */
.claim-results li.claim-add {
  color: var(--accent, #E8622A);
  font-weight: 600;
  border-top: 1px solid var(--line, #e9e3da);
}
.claim-results li.claim-add:hover { background: rgba(232,98,42,0.08); }
