.adn-slider {
    border: 1px solid #d6c2c2;
    border-radius: 10px;
    padding: 1%;
}

body, html {
    max-height: 100dvh;
    height: 100dvh;
    max-width: 100dvw;
    width: 100dvw;
    overflow: hidden;
    --variant-containedColor: white;
}

#root #main {
    overflow-x: hidden;
    overflow-y: auto;
}

.main-with-nav {
    max-height: calc(100dvh - 50px);
}

.main-without-nav {
    max-height: 100dvh;
}
.ha-page {
  min-height: 100dvh;
  background: #f5f7f2;
  padding: 16px 14px 32px;
  overflow-y: auto;
  max-width: 430px;
  margin: 0 auto;
  box-sizing: border-box;
}

.ha-card,
.ha-input-card,
.ha-added-card,
.ha-progress-card,
.ha-context-card,
.ha-detail-card,
.ha-frequency-card {
  background: #ffffff;
  border: 1px solid rgba(92, 140, 68, 0.10);
  border-radius: 22px;
  padding: 18px;
  margin: 14px 0 18px;
  box-shadow: 0 10px 30px rgba(29, 43, 23, 0.08);
}

.ha-badge {
  display: inline-block;
  background: #edf5e9;
  color: #466d33;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.ha-card h1,
.ha-context-card h1 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.15;
}

.ha-card h3,
.ha-detail-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.ha-context-card > p {
  margin: 0 0 18px;
  color: #647067;
  line-height: 1.5;
}

.ha-section-title {
  margin: 0 0 14px;
  color: #466d33;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ha-suggestions-title {
  margin-top: 18px;
}

.ha-help {
  font-size: 14px;
  color: #647067;
  margin: 10px 0 18px;
  line-height: 1.45;
}

.ha-hint {
  background: #fff9e9;
  border: 1px solid #f4e5ab;
  color: #7a6722;
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 14px;
}

.ha-callout-success {
  background: #edf5e9;
  border: 1px solid #cfe3c4;
  color: #3f6f2a;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  margin: 18px 0 10px;
  font-weight: 600;
}

.ha-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ha-topbar button {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #dfe6dd;
  background: white;
  font-size: 16px;
}

.ha-topbar button:disabled {
  opacity: 0.35;
}

.ha-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe6dd;
  background: #ffffff;
  border-radius: 16px;
  padding: 0 6px 0 12px;
  margin-top: 14px;
  margin-bottom: 10px;
}

.ha-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex: 0 0 auto;
  font-size: 18px;
  opacity: 0.75;
}

.ha-input-row input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 14px 2px;
  font-size: 15px;
  background: transparent;
}

.ha-input-row button {
  height: 40px;
  min-width: 40px;
  border: 0;
  border-radius: 14px;
  background: #5c8c44;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.ha-suggestions,
.ha-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ha-suggestions button,
.ha-chips span {
  border: 1px solid rgba(92, 140, 68, 0.14);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 700;
}

.ha-suggestions button {
  background: #edf5e9;
  color: #466d33;
}

.ha-chips span {
  background: white;
  color: #1f2a1f;
  border-color: #dfe6dd;
}

.ha-chips button {
  margin-left: 8px;
  border: 0;
  border-radius: 999px;
  background: #e9efea;
}

.ha-primary,
.ha-secondary {
  width: 100%;
  border-radius: 16px;
  padding: 16px;
  margin-top: 18px;
  font-weight: 900;
  font-size: 16px;
}

.ha-primary {
  border: 0;
  background: #5c8c44;
  color: white;
}

.ha-secondary {
  border: 1px solid #dfe6dd;
  background: white;
  color: #1f2a1f;
}

.ha-secondary-inside {
  margin-top: 12px;
}

.ha-progress-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ha-progress-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #647067;
  font-weight: 900;
  font-size: 15px;
}

.ha-progress-bar {
  width: 100%;
  height: 10px;
  background: #e6ede4;
  border-radius: 999px;
  overflow: hidden;
}

.ha-progress-fill {
  height: 100%;
  background: #5c8c44;
  border-radius: 999px;
}

.ha-frequency-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 18px;
}

.ha-frequency-grid button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #d8e2d4;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 10px;
  min-height: 42px;
  font-weight: 800;
  font-size: 14px;
  color: #111;
  text-align: center;
  box-shadow: none;
  cursor: pointer;
}

.ha-frequency-grid button.active,
.ha-frequency-grid button:hover {
  background: #edf7e9;
  border-color: #9fc58f;
  color: #3f762d;
}

.ha-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.ha-stats div {
  background: white;
  border-radius: 18px;
  padding: 16px;
}

.ha-stats strong {
  display: block;
  font-size: 28px;
  color: #466d33;
}

.ha-mission-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.ha-mission {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #dfe6dd;
  border-radius: 18px;
  padding: 16px;
}

.ha-mission > span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #edf5e9;
  color: #466d33;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.ha-mission strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 4px;
}

.ha-mission p {
  margin: 0;
  color: #647067;
  font-size: 14px;
}

.ha-loader {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 5px solid #e2ebdf;
  border-top-color: #5c8c44;
  animation: ha-spin 1s linear infinite;
  margin: 20px auto;
}

.ha-center {
  text-align: center;
}

/* WELCOME */

.ha-welcome-flow {
  padding-bottom: 96px;
}

.ha-welcome-stage {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f7eb 100%);
  border: 1px solid rgba(92, 140, 68, 0.14);
  border-radius: 30px;
  padding: 22px;
  margin: 16px 0 18px;
  box-shadow: 0 18px 45px rgba(29, 43, 23, 0.13);
}

.ha-welcome-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(92, 140, 68, 0.14);
  right: -70px;
  top: -70px;
}

.ha-welcome-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ha-welcome-right {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ha-welcome-count {
  color: #466d33;
  background: #ffffff;
  border: 1px solid #dfe6dd;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.ha-skip-button {
  border: 0;
  background: transparent;
  color: #1f3f1f;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.ha-skip-button span {
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}

.ha-welcome-stage h1 {
  position: relative;
  z-index: 1;
  margin: 18px 0;
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: -0.45px;
}

.ha-welcome-text {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1.42;
}

.ha-welcome-text p {
  margin: 0 0 16px;
}

.ha-welcome-text ul {
  margin: 0;
  padding-left: 19px;
}

.ha-welcome-text li {
  margin-bottom: 9px;
}

.ha-welcome-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.ha-welcome-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cfdccc;
}

.ha-welcome-dots span.active {
  width: 24px;
  background: #5c8c44;
}

.ha-welcome-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ha-welcome-actions:has(.ha-secondary) {
  grid-template-columns: 0.8fr 1.2fr;
}

/* IMPACT SUMMARY */

.ha-impact-hero {
  background: linear-gradient(145deg, #ffffff 0%, #f1f7ed 100%);
}

.ha-impact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ha-impact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e3e9e0;
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
}

.ha-impact-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.ha-impact-left strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #1f2a1f;
}

.ha-impact-left p {
  margin: 4px 0 0;
  color: #647067;
  font-size: 13px;
  line-height: 1.3;
}

.ha-impact-kcal {
  flex: 0 0 auto;
  color: #647067;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.ha-impact-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  margin-top: 4px;
  flex: 0 0 auto;
  background: #9aa59a;
}

.impact-none .ha-impact-dot {
  background: #23a455;
}

.impact-medium .ha-impact-dot {
  background: #f0a12b;
}

.impact-high .ha-impact-dot {
  background: #ef7d22;
}

.impact-limit .ha-impact-dot {
  background: #d93636;
}

.ha-details-native summary {
  cursor: pointer;
  font-weight: 900;
  color: #466d33;
  margin-bottom: 12px;
}

.ha-callout-card {
  background: #fffaf0;
  border-color: #f1dfb8;
}

.ha-callout-card h3 {
  color: #6a5314;
}

.ha-callout-card p {
  color: #6f653f;
}

/* FREQUENCY FOCUS */

.ha-food-title {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
}

.ha-food-title-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ha-food-title-text h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
}

.ha-food-title-text p {
  margin: 5px 0 0;
  color: #647067;
  font-size: 14px;
  line-height: 1.35;
}

.ha-frequency-status-dot {
  width: 13px;
  height: 13px;
  min-width: 13px;
  border-radius: 999px;
  margin-top: 6px;
  display: block;
  flex: 0 0 13px;
}

.ha-frequency-status-dot.empty {
  background: #c7cfc4;
}

.ha-frequency-status-dot.selected {
  background: #23a455;
}

@keyframes ha-spin {
  to {
    transform: rotate(360deg);
  }
}

/* MOBILE ONLY */

@media (max-width: 480px) {
  .ha-card p {
    line-height: 1.35;
    letter-spacing: -0.1px;
  }

  .ha-card h1 {
    line-height: 1.2;
  }

  .ha-impact-row {
    align-items: flex-start;
  }

  .ha-impact-kcal {
    font-size: 12px;
    max-width: 96px;
  }

  .ha-topbar button {
    opacity: 1 !important;
  }

  .ha-topbar button:not(:disabled) {
    opacity: 1 !important;
  }

  .ha-plats-card .ha-input-row input {
    font-size: 0.92rem;
  }

  .ha-alert-text {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 18px;
    color: #d3542f;
    font-weight: 700;
    line-height: 1.35;
  }

  .ha-alert-icon {
    font-size: 1.5rem;
    flex: 0 0 auto;
    margin-top: 2px;
  }

  .ha-impact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .ha-impact-kcal {
    font-weight: 800;
    color: #3d5f2c;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .ha-frequency-group {
    padding-bottom: 14px;
  }

  .ha-frequency-card {
    padding: 14px 16px;
    margin-bottom: 14px;
  }

  .ha-food-title-compact {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .ha-food-title-compact h3 {
    margin: 0;
    font-size: 1.05rem;
  }

  .ha-frequency-kcal {
    font-weight: 800;
    color: #1f3f1f;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .ha-frequency-grid-five {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ha-frequency-grid-five button:first-child {
    grid-column: 1 / -1;
  }

  .ha-frequency-grid-five button {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  .ha-plats-card .ha-alert-text {
    display: grid;
    grid-template-columns: 22px 1fr;
    column-gap: 10px;
    align-items: flex-start;
    margin: 10px 0 14px;
    color: #d3542f;
    font-weight: 700;
    line-height: 1.28;
  }

  .ha-plats-card .ha-alert-icon {
    font-size: 1.05rem;
    line-height: 1.2;
    margin-top: 2px;
  }

  .ha-plats-card .ha-input-row input {
    font-size: 0.86rem;
    line-height: 1.2;
  }
  .ha-frequency-group .ha-section-title {
    display: block;
    text-align: center;
    background: linear-gradient(90deg, #eef7ea, #f7fbf5);
    color: #2f6b2f;
    border: 1px solid #d7e6d2;
    border-radius: 14px;
    padding: 12px 16px;
    margin: 0 0 22px;
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}
.ha-plats-card {
  padding: 18px 18px 16px;
}

.ha-plats-card h1 {
  margin-bottom: 12px;
}

.ha-plats-card .ha-alert-text {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
  align-items: flex-start;
  margin: 8px 0 16px;
  color: #111;
  font-weight: 500;
  line-height: 1.22;
}

.ha-plats-card .ha-alert-text p {
  margin: 0;
}

.ha-plats-card .ha-alert-icon {
  font-size: 1.05rem;
  line-height: 1.1;
  margin-top: 1px;
}

.ha-plats-card .ha-input-row {
  margin-top: 10px;
}

.ha-plats-card .ha-input-row input {
  font-size: 0.84rem;
  line-height: 1.15;
}
.ha-plat-textarea {
  width: 100%;
  border: none;
  resize: none;
  outline: none;
  background: transparent;
  font-size: 0.92rem;
  line-height: 1.25;
  padding-top: 8px;
  font-family: inherit;
}

.ha-plat-textarea::placeholder {
  line-height: 1.25;
  color: #9aa19a;
}
.ha-frequency-group h3.ha-section-title {
  display: block;
  text-align: center;
  background: linear-gradient(90deg, #fff3e7, #fff8f2);
  color: #d96a1d;
  border: 1px solid #f0c9a8;
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0 0 22px;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

button,
hr,
input {
    overflow: visible
}

progress,
sub,
sup {
    vertical-align: baseline
}

[type=checkbox],
[type=radio],
legend {
    box-sizing: border-box;
    padding: 0;
}

* {
    font-family: Inter;
}
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%
}

body {
    margin: 0;
    font-family: Roboto;
}

details,
main {
    display: block
}

h1 {
    font-size: 2em;
    margin: .67em 0
}

hr {
    box-sizing: content-box;
    height: 0
}

code,
kbd,
pre,
samp {
    font-family: monospace, monospace;
    font-size: 1em
}

a {
    background-color: transparent
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted
}

b,
strong {
    font-weight: bolder
}

small {
    font-size: 80%
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

img {
    border-style: none
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0
}

button,
select {
    text-transform: none
}

[type=button],
[type=reset],
[type=submit],
button {
    -webkit-appearance: button
}

[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner,
button::-moz-focus-inner {
    border-style: none;
    padding: 0
}

[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring,
button:-moz-focusring {
    outline: ButtonText dotted 1px
}

fieldset {
    padding: .35em .75em .625em
}

legend {
    color: inherit;
    display: table;
    max-width: 100%;
    white-space: normal
}

textarea {
    overflow: auto
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
    height: auto
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px
}

[type=search]::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

summary {
    display: list-item
}

[hidden],
template {
    display: none
}


.ql-snow {
    .ql-picker {
        &.ql-size {

            .ql-picker-label,
            .ql-picker-item {
                &::before {
                    content: attr(data-value) !important;
                }
            }
        }
    }
}


.MuiOutlinedInput-root {
    border-radius: 20px !important;
}
