.vfd-content {
  --vfd-bg: #faf7f2;
  --vfd-panel: #fffdf9;
  --vfd-line: #d9d6cf;
  --vfd-text: #263238;
  --vfd-soft-blue: #7b96b1;
  --vfd-terra: #c97b5c;
  --vfd-ochre: #cfaa66;
  --vfd-focus: #295f9b;

  box-sizing: border-box;
  margin: 0;
  max-width: none;
  padding: 0;
  color: var(--vfd-text);
  background:
    radial-gradient(circle at 10% 10%, rgb(201 123 92 / 10%), transparent 40%),
    radial-gradient(circle at 90% 20%, rgb(123 150 177 / 12%), transparent 42%),
    var(--vfd-bg);
  border-radius: 0;
}

.vfd-content *,
.vfd-content *::before,
.vfd-content *::after {
  box-sizing: inherit;
}

.vfd-content .vfd-zone {
  background: var(--vfd-panel);
  border: 1px solid var(--vfd-line);
  border-radius: 0;
  box-shadow: 0 10px 24px rgb(54 53 49 / 8%);
  padding: 14px;
}

.vfd-content .vfd-zone-step {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.vfd-content .vfd-step-progress {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.vfd-content .vfd-step-dot {
  width: 30px;
  height: 5px;
  border-radius: 999px;
  background: rgb(0 0 0 / 10%);
}

.vfd-content .vfd-step-dot.is-active {
  background: var(--vfd-terra);
}

.vfd-content .vfd-step-label {
  margin: 0;
  opacity: 0.85;
}

.vfd-content .vfd-zone-ai {
  border-top: 3px solid var(--vfd-soft-blue);
}

.vfd-content .vfd-ai-callout-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.vfd-content .vfd-guide-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 14px;
  background: rgb(123 150 177 / 14%);
  border: 1.5px solid rgb(123 150 177 / 30%);
  overflow: hidden;
  padding: 0;
}

.vfd-content .vfd-bot-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vfd-content .vfd-ai-callout-header .vfd-zone-header {
  padding-top: 4px;
}

.vfd-content .vfd-ai-callout-header .vfd-zone-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.vfd-content .vfd-ai-callout-header .vfd-zone-subtitle {
  font-size: 0.85rem;
  opacity: 0.72;
}

.vfd-content[data-vfd-app="where-are-carbs"] {
  display: grid;
  gap: 0;
}

.vfd-content[data-vfd-app="where-are-carbs"][data-vfd-step="1"] {
  display: block;
}

.vfd-content[data-vfd-app="where-are-carbs"][data-vfd-step="2"] {
  gap: 14px;
  grid-template-areas:
    "step"
    "ai"
    "timeline";
}

.vfd-content[data-vfd-app="where-are-carbs"][data-vfd-step="3"] {
  gap: 14px;
  grid-template-areas:
    "step"
    "timeline";
}

.vfd-content .vfd-zone-header {
  display: grid;
  gap: 6px;
}

.vfd-content .vfd-zone-title {
  margin: 0;
}

.vfd-content .vfd-zone-subtitle,
.vfd-content .vfd-ai-question,
.vfd-content .vfd-ai-summary,
.vfd-content .vfd-input-help,
.vfd-content .vfd-status-line,
.vfd-content .vfd-item-caption,
.vfd-content .vfd-item-label,
.vfd-content .vfd-empty-slot,
.vfd-content .vfd-period-title,
.vfd-content .vfd-carousel-slide figcaption p {
  margin: 0;
}

.vfd-content .vfd-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin-top: 10px;
}

.vfd-content .vfd-carousel-track {
  position: relative;
  min-height: 176px;
  overflow: hidden;
}

.vfd-content .vfd-carousel-slide {
  display: block;
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.vfd-content .vfd-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.vfd-content .vfd-carousel-slide img {
  display: block;
  width: 100%;
  height: 192px;
  object-fit: cover;
  border-radius: 0;
}

.vfd-content .vfd-ai-avatar {
  display: inline-block;
  margin-left: 6px;
}

.vfd-content .vfd-input-wrap {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  position: relative;
}

.vfd-content .vfd-input {
  width: 100%;
  min-height: 90px;
  border-radius: 0;
  border: 1px solid var(--vfd-line);
  padding: 10px 12px;
  padding-right: 38px;
  resize: vertical;
  background: #fff;
}

.vfd-content .vfd-input-wrap.is-step-two .vfd-input {
  min-height: 44px;
}

.vfd-content .vfd-input-wrap.is-step-two .vfd-input-actions {
  justify-content: space-between;
}

.vfd-content .vfd-input-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--vfd-line);
  background: #fff;
  color: var(--vfd-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.vfd-content .vfd-input-clear span {
  font-size: 16px;
}

.vfd-content .vfd-input-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.vfd-content .vfd-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--vfd-soft-blue);
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
}

.vfd-content .vfd-link-button[hidden] {
  display: none;
}

.vfd-content .vfd-status-line {
  flex: 0 0 100%;
  width: 100%;
}

.vfd-content .vfd-ai-summary {
  padding: 8px 10px;
  border-radius: 0;
  border: 1px solid rgb(123 150 177 / 35%);
  background: rgb(123 150 177 / 10%);
}

.vfd-content .vfd-input-help {
  order: -1;
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  text-align: right;
  font-style: italic;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: rgb(38 50 56 / 68%);
  white-space: nowrap;
}

.vfd-content .vfd-action-buttons {
  display: flex;
  gap: 8px;
}

.vfd-content .vfd-icon-button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  border: 1.5px solid var(--vfd-line);
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.vfd-content .vfd-icon-button:hover {
  background: rgb(38 50 56 / 5%);
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.vfd-content .vfd-icon-button[data-vfd-action="voice"] {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  background: rgb(123 150 177 / 10%);
  border-color: rgb(123 150 177 / 35%);
  color: var(--vfd-soft-blue);
}

.vfd-content .vfd-icon-button[data-vfd-action="voice"]:hover {
  background: rgb(123 150 177 / 22%);
  border-color: var(--vfd-soft-blue);
  box-shadow: 0 2px 10px rgb(123 150 177 / 25%);
}

.vfd-content .vfd-send-button {
  min-width: 58px;
  background: var(--vfd-soft-blue);
  border-color: var(--vfd-soft-blue);
  color: #fff;
  border-radius: 8px;
}

.vfd-content .vfd-send-button:hover:not(:disabled) {
  background: #6a82a0;
  border-color: #6a82a0;
  box-shadow: 0 2px 10px rgb(123 150 177 / 35%);
}

.vfd-content .vfd-secondary-button {
  min-width: 180px;
  border-radius: 8px;
  border: 1.5px solid var(--vfd-line);
  background: #fff;
  color: var(--vfd-text);
  padding: 0 16px;
}

.vfd-content .vfd-golden-button {
  background: #cb9d23;
  border-color: #cb9d23;
  color: #fff;
  min-width: 160px;
}

.vfd-content .vfd-golden-button:hover {
  background: #b08a1e;
  border-color: #b08a1e;
  box-shadow: 0 2px 10px rgb(203 157 35 / 35%);
}

.vfd-content .vfd-icon-button.vfd-show-day-enter {
  animation: vfd-fade-in 0.28s ease-out both;
}

.vfd-content[data-vfd-app="where-are-carbs"][data-vfd-step="1"] [data-vfd-action="show-day"] {
  display: none !important;
}

.vfd-content .vfd-send-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.vfd-content .vfd-icon-mic {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.vfd-content .vfd-icon-button.is-listening {
  border-color: var(--vfd-terra);
  box-shadow: 0 0 0 3px rgb(201 123 92 / 18%);
  animation: vfd-mic-pulse 1.8s ease-in-out infinite;
}

.vfd-content .vfd-timeline {
  margin-top: 10px;
  display: grid;
  gap: 16px;
}

.vfd-content .vfd-phase {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: stretch;
}

.vfd-content .vfd-phase-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.vfd-content .vfd-phase-rail::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 2px dotted var(--vfd-line);
  z-index: 0;
}

.vfd-content .vfd-phase:last-child .vfd-phase-rail::before {
  display: none;
}

.vfd-content .vfd-phase-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vfd-panel);
  border: 1px solid var(--vfd-line);
  box-shadow: 0 4px 10px rgb(54 53 49 / 8%);
  font-size: 22px;
  line-height: 1;
  color: var(--vfd-ochre);
}

.vfd-content .vfd-phase:last-child .vfd-phase-icon {
  color: var(--vfd-soft-blue);
}

.vfd-content .vfd-phase-label {
  position: relative;
  z-index: 1;
  font-size: 0.8em;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
  opacity: 0.85;
}

.vfd-content .vfd-phase-periods {
  display: grid;
  gap: 10px;
}

.vfd-content .vfd-period-card {
  border: 1px solid var(--vfd-line);
  border-radius: 0;
  padding: 10px;
  background: #fff;
}

.vfd-content .vfd-period-card.is-compact {
  min-height: 118px;
}

.vfd-content .vfd-period-card.is-empty {
  border-style: dashed;
}

.vfd-content .vfd-period-card.is-next-missing {
  border-color: var(--vfd-terra);
}

.vfd-content .vfd-period-title {
  margin: 0;
  font-weight: 700;
}

.vfd-content .vfd-period-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vfd-content .vfd-period-add-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgb(38 50 56 / 45%);
  padding: 0 2px;
  min-width: 20px;
  min-height: 20px;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.vfd-content .vfd-period-add-btn:hover,
.vfd-content .vfd-period-add-btn:focus-visible {
  color: rgb(38 50 56 / 92%);
  background: rgb(38 50 56 / 8%);
}

.vfd-content .vfd-period-content {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 0;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.vfd-content .vfd-step-two-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.vfd-content .vfd-step-two-wrap {
  display: grid;
  gap: 12px;
}

.vfd-content .vfd-step-two-overview {
  border: 1px solid var(--vfd-line);
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.vfd-content .vfd-step-two-overview {
  display: none;
}

.vfd-content .vfd-step-two-timeline .vfd-period-card {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--vfd-panel);
  box-shadow: 0 2px 6px rgb(54 53 49 / 6%);
  margin: 0;
}

.vfd-content .vfd-step-two-timeline .vfd-period-card.is-compact {
  min-height: 0;
}

.vfd-content .vfd-step-two-timeline .vfd-period-title {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.25;
}

.vfd-content .vfd-step-two-timeline .vfd-period-header {
  padding: 10px 10px 9px;
  border-bottom: 1px solid var(--vfd-line);
  background: rgb(123 150 177 / 8%);
}

.vfd-content .vfd-step-two-timeline .vfd-period-add-btn {
  color: rgb(38 50 56 / 42%);
}

.vfd-content .vfd-step-two-timeline .vfd-period-add-btn:hover,
.vfd-content .vfd-step-two-timeline .vfd-period-add-btn:focus-visible {
  color: rgb(38 50 56 / 92%);
}

.vfd-content .vfd-step-two-timeline .vfd-period-content {
  flex: 1;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0;
  padding: 10px;
}

.vfd-content .vfd-step-two-timeline .vfd-item-chip {
  width: 100%;
  justify-content: flex-start;
}

.vfd-content .vfd-step-two-timeline .vfd-item-label {
  text-align: left;
}

.vfd-content .vfd-step-two-timeline .vfd-empty-slot {
  align-self: center;
  padding: 6px 0;
}

.vfd-content .vfd-overview {
  display: grid;
  gap: 16px;
}

.vfd-content .vfd-overview-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.vfd-content .vfd-overview-metric-card {
  border: 1px solid var(--vfd-line);
  background: #fff;
  padding: 12px;
}

.vfd-content .vfd-overview-metric-click {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.vfd-content .vfd-overview-metric-click:hover {
  background: rgb(123 150 177 / 8%);
}

.vfd-content .vfd-overview-metric-label,
.vfd-content .vfd-overview-subtext,
.vfd-content .vfd-overview-bar-label,
.vfd-content .vfd-overview-bar-value,
.vfd-content .vfd-overview-save-row p {
  margin: 0;
}

.vfd-content .vfd-overview-metric-value {
  margin: 2px 0 0;
  font-size: 1.65rem;
  line-height: 1;
}

.vfd-content .vfd-overview-chart-card {
  border: 1px solid var(--vfd-line);
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.vfd-content .vfd-overview-heading {
  margin: 0;
}

.vfd-content .vfd-overview-total-text {
  margin: 0;
  font-size: 0.95rem;
}

.vfd-content .vfd-overview-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  min-height: 168px;
  align-items: end;
}

.vfd-content .vfd-overview-bar-col {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.vfd-content .vfd-overview-bar-wrap {
  width: 24px;
  margin: 0 auto;
  height: 132px;
  display: flex;
  align-items: end;
}

.vfd-content .vfd-overview-bar-hit {
  appearance: none;
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: end;
  cursor: pointer;
}

.vfd-content .vfd-overview-bar {
  display: block;
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: var(--vfd-terra);
  min-height: 6px;
}

.vfd-content .vfd-overview-sort-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.vfd-content .vfd-overview-sort-btn:hover {
  text-decoration: underline;
}

.vfd-content .vfd-overview-bar-hit::after {
  content: "✎";
  position: absolute;
  top: -16px;
  right: -10px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.vfd-content .vfd-overview-bar-hit:hover .vfd-overview-bar {
  filter: brightness(1.05);
}

.vfd-content .vfd-overview-bar-hit:hover::after,
.vfd-content .vfd-overview-bar-hit:focus-visible::after {
  opacity: 0.85;
}

.vfd-content .vfd-overview-bar-label,
.vfd-content .vfd-overview-bar-value {
  text-align: center;
  font-size: 0.86rem;
}

.vfd-content .vfd-overview-food-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.vfd-content .vfd-overview-food-link:hover {
  text-decoration: underline;
}

.vfd-content .vfd-overview-food-link::after {
  content: " ✎";
  opacity: 0;
  transition: opacity 0.15s ease;
}

.vfd-content .vfd-overview-food-link:hover::after,
.vfd-content .vfd-overview-food-link:focus-visible::after {
  opacity: 0.8;
}

.vfd-content .vfd-overview-summary {
  border: 1px solid rgb(201 123 92 / 30%);
  background: rgb(201 123 92 / 12%);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.vfd-content .vfd-overview-summary p {
  margin: 0;
}

.vfd-content .vfd-overview-summary-status {
  opacity: 0.85;
}

.vfd-content .vfd-overview-reflection {
  border: 1px solid var(--vfd-line);
  background: rgb(38 50 56 / 3%);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.vfd-content .vfd-overview-reflection-question,
.vfd-content .vfd-overview-reflection-reply {
  margin: 0;
}

.vfd-content .vfd-overview-reflection-input {
  min-height: 92px;
}

.vfd-content .vfd-overview-reflection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.vfd-content .vfd-overview-reflection-actions .vfd-send-button {
  min-width: 150px;
}

.vfd-content .vfd-overview-reflection-reply {
  border-top: 1px dashed rgb(38 50 56 / 22%);
  padding-top: 8px;
}

.vfd-content .vfd-overview-foods {
  border: 1px solid var(--vfd-line);
  background: #fff;
  padding: 0;
}

.vfd-content .vfd-overview-foods-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  margin: 0;
  cursor: pointer;
  font-weight: 700;
}

.vfd-content .vfd-overview-foods-summary::-webkit-details-marker {
  display: none;
}

.vfd-content .vfd-overview-foods-summary::before {
  content: "▸";
  line-height: 1;
  transform-origin: center;
  transition: transform 0.15s ease;
}

.vfd-content .vfd-overview-foods[open] .vfd-overview-foods-summary::before {
  transform: rotate(90deg);
}

.vfd-content .vfd-overview-foods-body {
  padding: 0 12px 12px;
}

.vfd-content .vfd-overview-foods-table tfoot th {
  border-top: 2px solid var(--vfd-line);
  font-weight: 700;
}

.vfd-content .vfd-overview-save-row {
  border: 1px solid var(--vfd-line);
  background: rgb(38 50 56 / 3%);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vfd-content .vfd-overview-metric-click:focus-visible,
.vfd-content .vfd-overview-bar-hit:focus-visible {
  outline: 3px solid var(--vfd-focus);
  outline-offset: 2px;
}

.vfd-content .vfd-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}

.vfd-content .vfd-modal[hidden] {
  display: none;
}

.vfd-content .vfd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 48%);
}

.vfd-content .vfd-modal-dialog {
  position: relative;
  width: min(860px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--vfd-line);
  box-shadow: 0 24px 48px rgb(0 0 0 / 20%);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.vfd-content .vfd-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  appearance: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--vfd-line);
  background: #fff;
  cursor: pointer;
}

.vfd-content .vfd-modal-title,
.vfd-content .vfd-modal-subtitle,
.vfd-content .vfd-modal-note {
  margin: 0;
}

.vfd-content .vfd-modal-content {
  display: grid;
  gap: 10px;
}

.vfd-content .vfd-modal-table {
  width: 100%;
  border-collapse: collapse;
}

.vfd-content .vfd-modal-table th,
.vfd-content .vfd-modal-table td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--vfd-line);
}

.vfd-content .vfd-modal-edit-table th:last-child,
.vfd-content .vfd-modal-edit-table td:last-child {
  width: 52px;
  text-align: right;
}

.vfd-content .vfd-modal-edit-table th:nth-child(2),
.vfd-content .vfd-modal-edit-table td:nth-child(2) {
  width: 52%;
}

.vfd-content .vfd-modal-edit-table th:nth-child(3),
.vfd-content .vfd-modal-edit-table td:nth-child(3) {
  width: 1%;
  white-space: nowrap;
}

.vfd-content .vfd-modal-quantity-editor {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: stretch;
}

.vfd-content .vfd-modal-food-input {
  width: 100%;
  border: 1px solid var(--vfd-line);
  background: #fff;
  padding: 6px 8px;
  font: inherit;
}

.vfd-content .vfd-modal-stepper {
  display: inline-flex;
  align-items: stretch;
  height: 32px;
  border: 1px solid var(--vfd-line);
  background: #fff;
}

.vfd-content .vfd-modal-step-btn {
  appearance: none;
  border: 0;
  background: rgb(38 50 56 / 4%);
  color: var(--vfd-text);
  width: 26px;
  height: 32px;
  cursor: pointer;
  font: inherit;
}

.vfd-content .vfd-modal-step-btn:hover {
  background: rgb(38 50 56 / 10%);
}

.vfd-content .vfd-modal-qty-input {
  width: 60px;
  height: 32px;
  box-sizing: border-box;
  border: 0;
  border-top: 1px solid var(--vfd-line);
  border-bottom: 1px solid var(--vfd-line);
  border-left: 1px solid var(--vfd-line);
  border-right: 1px solid var(--vfd-line);
  padding: 0 6px;
  text-align: center;
  background: #fff;
  font: inherit;
}

.vfd-content .vfd-modal-qty-input::-webkit-outer-spin-button,
.vfd-content .vfd-modal-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vfd-content .vfd-modal-qty-input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.vfd-content .vfd-modal-unit-select {
  min-width: 110px;
  height: 32px;
  box-sizing: border-box;
  border: 1px solid var(--vfd-line);
  background: #fff;
  padding: 0 8px;
  font: inherit;
}

.vfd-content .vfd-modal-delete-btn {
  appearance: none;
  width: 30px;
  height: 30px;
  border: 1px solid rgb(201 123 92 / 45%);
  background: #fff;
  color: var(--vfd-terra);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.vfd-content .vfd-modal-delete-btn:hover {
  background: rgb(201 123 92 / 10%);
}

.vfd-content .vfd-modal-step-btn:focus-visible,
.vfd-content .vfd-modal-food-input:focus-visible,
.vfd-content .vfd-modal-qty-input:focus-visible,
.vfd-content .vfd-modal-unit-select:focus-visible,
.vfd-content .vfd-modal-delete-btn:focus-visible {
  outline: 3px solid var(--vfd-focus);
  outline-offset: 1px;
}

.vfd-content .vfd-overview-sort-btn:focus-visible {
  outline: 3px solid var(--vfd-focus);
  outline-offset: 1px;
}

.vfd-content .vfd-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.vfd-content .vfd-overview-actions .vfd-send-button {
  min-width: 220px;
}

.vfd-content .vfd-empty-slot {
  opacity: 0.5;
  font-size: 0.9em;
  font-style: italic;
}

.vfd-content .vfd-period-content.is-drop-target {
  background: rgb(123 150 177 / 14%);
  box-shadow: inset 0 0 0 2px rgb(123 150 177 / 42%);
}

.vfd-content .vfd-item-chip {
  appearance: none;
  width: auto;
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--vfd-line);
  background: #fff;
  padding: 7px 10px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
  transition: opacity 0.5s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.vfd-content .vfd-item-chip.is-entering {
  opacity: 0;
}

.vfd-content .vfd-item-chip.is-dragging {
  opacity: 0.45;
}

.vfd-content .vfd-item-chip.is-zero-carb {
  opacity: 0.5;
}

.vfd-content .vfd-item-label {
  margin: 0;
}

.vfd-content .vfd-item-chip:hover {
  background: rgb(38 50 56 / 5%);
  border-color: var(--vfd-soft-blue);
}

.vfd-content .vfd-item-chip:focus-visible {
  outline: 3px solid var(--vfd-focus);
  outline-offset: 2px;
}

.vfd-content .vfd-item-caption {
  opacity: 0.86;
}

.vfd-content .vfd-item-carbs {
  font-size: 0.9em;
  font-weight: 600;
  opacity: 0.75;
  white-space: nowrap;
}

.vfd-content .vfd-zone-title-total {
  font-weight: 600;
  opacity: 0.85;
}

.vfd-content .vfd-food-detail {
  margin-top: 10px;
  border: 1px solid rgb(201 123 92 / 34%);
  border-radius: 0;
  background: rgb(201 123 92 / 10%);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.vfd-content .vfd-food-detail.is-drag-active {
  background: rgb(201 123 92 / 16%);
  box-shadow: inset 0 0 0 2px rgb(201 123 92 / 42%);
}

.vfd-content .vfd-food-detail.is-delete-target {
  background: rgb(201 123 92 / 18%);
  box-shadow: inset 0 0 0 2px rgb(201 123 92 / 55%);
}

.vfd-content .vfd-food-detail-title,
.vfd-content .vfd-food-detail-note {
  margin: 0;
}

.vfd-content .vfd-food-detail-title {
  font-weight: 700;
}

.vfd-content .vfd-food-detail-note {
  opacity: 0.82;
}

.vfd-content .vfd-food-delete-hint {
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px dashed rgb(201 123 92 / 45%);
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vfd-content .vfd-food-delete-icon {
  display: none;
  font-size: 1.1rem;
  line-height: 1;
}

.vfd-content .vfd-food-detail.is-drag-active .vfd-food-delete-icon,
.vfd-content .vfd-food-detail.is-delete-target .vfd-food-delete-icon {
  display: inline-flex;
}

.vfd-content .vfd-gram-editor-label {
  display: block;
  margin-top: 4px;
}

.vfd-content .vfd-gram-editor-input {
  width: min(220px, 100%);
  border: 1px solid var(--vfd-line);
  background: #fff;
  padding: 6px 8px;
  font: inherit;
}

.vfd-content .vfd-input:focus-visible,
.vfd-content .vfd-icon-button:focus-visible,
.vfd-content .vfd-input-clear:focus-visible {
  outline: 3px solid var(--vfd-focus);
  outline-offset: 2px;
}

.vfd-content .vfd-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(50%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

@keyframes vfd-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vfd-mic-pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }

  100% {
    opacity: 1;
  }
}

@media (min-width: 480px) {
  .vfd-content .vfd-step-two-timeline {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .vfd-content .vfd-modal-edit-table thead {
    display: none;
  }

  .vfd-content .vfd-modal-edit-table,
  .vfd-content .vfd-modal-edit-table tbody,
  .vfd-content .vfd-modal-edit-table tr,
  .vfd-content .vfd-modal-edit-table td {
    display: block;
    width: 100%;
  }

  .vfd-content .vfd-modal-edit-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "food food"
      "quantity quantity"
      "carbs delete";
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--vfd-line);
  }

  .vfd-content .vfd-modal-edit-table tr:last-child {
    border-bottom: 0;
  }

  .vfd-content .vfd-modal-edit-table td {
    border-bottom: 0;
    padding: 0;
  }

  .vfd-content .vfd-modal-edit-table td:nth-child(1) {
    grid-area: food;
  }

  .vfd-content .vfd-modal-edit-table td:nth-child(2) {
    grid-area: quantity;
    width: 100%;
  }

  .vfd-content .vfd-modal-edit-table td:nth-child(3) {
    grid-area: carbs;
    width: auto;
    align-self: center;
    white-space: nowrap;
    font-weight: 600;
  }

  .vfd-content .vfd-modal-edit-table td:nth-child(4) {
    grid-area: delete;
    width: auto;
    justify-self: end;
    align-self: center;
    text-align: right;
  }

  .vfd-content .vfd-modal-quantity-editor {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .vfd-content .vfd-modal-stepper {
    flex: 0 0 auto;
    max-width: none;
  }

  .vfd-content .vfd-modal-unit-select {
    min-width: 96px;
    flex: 1 1 120px;
  }

  .vfd-content .vfd-modal-delete-btn {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .vfd-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .vfd-content .vfd-zone,
  .vfd-content .vfd-overview,
  .vfd-content .vfd-overview-chart-card,
  .vfd-content .vfd-overview-summary,
  .vfd-content .vfd-overview-reflection,
  .vfd-content .vfd-overview-foods,
  .vfd-content .vfd-overview-save-row,
  .vfd-content .vfd-modal-dialog {
    min-width: 0;
    max-width: 100%;
  }

  .vfd-content .vfd-action-buttons {
    flex-wrap: wrap;
  }

  .vfd-content .vfd-input-help {
    white-space: normal;
  }

  .vfd-content .vfd-step-two-timeline {
    grid-template-columns: 1fr;
  }

  .vfd-content .vfd-secondary-button,
  .vfd-content .vfd-golden-button,
  .vfd-content .vfd-overview-actions .vfd-send-button,
  .vfd-content .vfd-overview-reflection-actions .vfd-send-button {
    min-width: 0;
    width: 100%;
  }

  .vfd-content .vfd-overview-bars {
    gap: 3px;
    min-height: 150px;
  }

  .vfd-content .vfd-overview-bar-col {
    min-width: 0;
  }

  .vfd-content .vfd-overview-bar-wrap {
    width: 20px;
    height: 120px;
  }

  .vfd-content .vfd-overview-bar-label,
  .vfd-content .vfd-overview-bar-value {
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .vfd-content .vfd-overview-metric-value {
    font-size: 1.4rem;
  }

  .vfd-content .vfd-overview-save-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .vfd-content .vfd-overview-save-row p {
    min-width: 0;
  }

  .vfd-content .vfd-overview-foods {
    overflow-x: auto;
  }

  .vfd-content .vfd-overview-foods-table {
    width: 100%;
    table-layout: fixed;
  }

  .vfd-content .vfd-overview-foods-table th,
  .vfd-content .vfd-overview-foods-table td {
    overflow-wrap: anywhere;
  }
}

@media (min-width: 768px) {
  .vfd-content {
    padding: 0;
  }

  .vfd-content[data-vfd-app="where-are-carbs"] {
    grid-template-columns: 1fr;
    grid-template-areas:
      "step"
      "ai"
      "timeline timeline";
  }

  .vfd-content[data-vfd-app="where-are-carbs"][data-vfd-step="2"] {
    grid-template-areas:
      "step"
      "ai"
      "timeline";
  }

  .vfd-content[data-vfd-app="where-are-carbs"][data-vfd-step="3"] {
    grid-template-areas:
      "step"
      "timeline";
  }

  .vfd-content .vfd-zone-step {
    grid-area: step;
  }

  .vfd-content .vfd-zone-ai {
    grid-area: ai;
  }

  .vfd-content .vfd-zone-timeline {
    grid-area: timeline;
  }

  .vfd-content .vfd-overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .vfd-content .vfd-input-wrap.is-step-two {
    gap: 12px;
  }
}
