:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #101828;
  background: #f2f4f7;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #f2f4f7;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(50, 213, 131, 0.12), transparent 28rem),
    #f2f4f7;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

#root {
  min-height: 100vh;
}
.app {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 60px;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.top-header h1 {
  margin: 4px 0 6px;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
  color: #101828;
}

.eyebrow,
.card-label {
  margin: 0;
  color: #16835b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.subtitle {
  margin: 0;
  color: #667085;
  font-size: 1rem;
}

.profile-circle {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #101828;
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
}

.day-selector {
  margin-bottom: 20px;
}

.day-selector h2,
.quick-actions h2 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 1.1rem;
}

.day-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.day-button {
  min-height: 46px;
  border: 1px solid #d0d5dd;
  border-radius: 13px;
  background: white;
  color: #344054;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.day-button:hover {
  transform: translateY(-1px);
  border-color: #16835b;
}

.day-button.active {
  border-color: #16835b;
  background: #16835b;
  color: white;
}

.calorie-card {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #101828, #1d2939);
  color: white;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.calorie-card .card-label {
  color: #75e0b1;
}

.calorie-card h2 {
  margin: 5px 0 0;
  font-size: 1.75rem;
}

.card-heading > strong {
  color: #75e0b1;
  font-size: 1rem;
  white-space: nowrap;
}

.progress-track {
  width: 100%;
  height: 13px;
  margin: 24px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: #32d583;
  transition: width 0.3s ease;
}

.target-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #d0d5dd;
  font-size: 0.9rem;
}

.adaptive-card {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #d1fadf;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #f6fef9);
  box-shadow: 0 9px 26px rgba(16, 24, 40, 0.05);
}

.adaptive-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.adaptive-header h2 {
  margin: 5px 0 0;
  color: #101828;
  font-size: 1.25rem;
}

.adaptive-total {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex-shrink: 0;
}

.adaptive-total span {
  color: #667085;
  font-size: 0.78rem;
}

.adjustment-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #e4e7ec;
}

.adjustment-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.96);
}

.adjustment-row > div {
  display: grid;
  gap: 4px;
}

.adjustment-row > div > strong {
  color: #101828;
  font-size: 0.92rem;
}

.adjustment-row span {
  max-width: 620px;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.45;
}

.adjustment-row > strong {
  white-space: nowrap;
}

.adjustment-value {
  font-size: 0.92rem;
}

.adjustment-value.positive {
  color: #067647;
}

.adjustment-value.negative {
  color: #b54708;
}

.adjustment-value.neutral {
  color: #475467;
}

.recovery-message {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fffaeb;
  color: #93370d;
  font-size: 0.86rem;
  line-height: 1.45;
}

.adaptive-note {
  margin: 14px 0 0;
  color: #667085;
  font-size: 0.8rem;
  line-height: 1.5;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.macro-card,
.info-card {
  padding: 19px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: white;
  box-shadow: 0 7px 22px rgba(16, 24, 40, 0.05);
}

.macro-card span {
  display: block;
  margin-bottom: 7px;
  color: #667085;
  font-weight: 650;
}

.macro-card strong {
  display: block;
  margin-bottom: 5px;
  color: #101828;
  font-size: 1.55rem;
}

.macro-card small {
  color: #98a2b3;
}

.quick-actions {
  margin-bottom: 28px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.action-button {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: white;
  color: #344054;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(16, 24, 40, 0.05);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.action-button:hover {
  transform: translateY(-2px);
  border-color: #32d583;
}

.action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #ecfdf3;
  color: #16835b;
  font-size: 1.35rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.info-card h3 {
  margin: 8px 0 5px;
  color: #101828;
  font-size: 1.25rem;
}

.info-card p:not(.card-label) {
  margin: 4px 0 0;
  color: #667085;
}

.text-button {
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #16835b;
  font-weight: 750;
  cursor: pointer;
}

.food-log {
  margin-bottom: 28px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 4px 0 0;
  color: #101828;
  font-size: 1.3rem;
}

.section-heading > span {
  color: #667085;
  font-size: 0.9rem;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #b7c0cc;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.empty-state strong {
  color: #101828;
}

.empty-state p {
  margin: 6px 0 0;
  color: #667085;
}

.food-list {
  display: grid;
  gap: 10px;
}

.food-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: white;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.food-item h3 {
  margin: 0 0 5px;
  color: #101828;
  font-size: 1rem;
}

.food-item p {
  margin: 0;
  color: #667085;
  font-size: 0.88rem;
}

.food-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.food-item-right strong {
  color: #101828;
}

.delete-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #d92d20;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(16, 24, 40, 0.68);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.3);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.modal-header h2 {
  margin: 4px 0 0;
  color: #101828;
}

.close-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f2f4f7;
  color: #344054;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.food-form,
.whoop-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.food-form label,
.weigh-in-form label,
.whoop-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 700;
}

.food-form input,
.weigh-in-form input,
.whoop-form input,
.whoop-form textarea {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  outline: none;
  background: white;
  color: #101828;
}

.whoop-form textarea {
  resize: vertical;
}

.food-form input:focus,
.weigh-in-form input:focus,
.whoop-form input:focus,
.whoop-form textarea:focus {
  border-color: #16835b;
  box-shadow: 0 0 0 4px rgba(22, 131, 91, 0.12);
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 750;
  cursor: pointer;
}

.primary-button {
  border: 1px solid #16835b;
  background: #16835b;
  color: white;
}

.secondary-button {
  border: 1px solid #d0d5dd;
  background: white;
  color: #344054;
}

.weight-modal {
  width: min(520px, 100%);
}

.weigh-in-form {
  display: grid;
  gap: 14px;
}

.weight-input-wrap {
  position: relative;
}

.weight-input-wrap input {
  padding-right: 54px;
  font-size: 1.15rem;
  font-weight: 750;
}

.weight-input-wrap span {
  position: absolute;
  top: 50%;
  right: 16px;
  color: #667085;
  transform: translateY(-50%);
}

.helper-text {
  margin: 0;
  color: #667085;
  font-size: 0.88rem;
  line-height: 1.5;
}

.weight-history {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e4e7ec;
}

.weight-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.weight-history-heading h3 {
  margin: 0;
  color: #101828;
  font-size: 1rem;
}

.weight-history-heading span {
  color: #667085;
  font-size: 0.85rem;
}

.weight-history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #f2f4f7;
  color: #667085;
}

.weight-history-row strong {
  color: #101828;
}

.whoop-history-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f2f4f7;
}

.whoop-history-row > div {
  display: grid;
  gap: 3px;
}

.whoop-history-row strong {
  color: #101828;
  font-size: 0.9rem;
}

.whoop-history-row span {
  color: #667085;
  font-size: 0.8rem;
}

@media (max-width: 680px) {
  .app {
    width: min(100% - 22px, 920px);
    padding-top: 22px;
  }

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

  .profile-circle {
    width: 46px;
    height: 46px;
  }

  .day-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-heading {
    flex-direction: column;
  }

  .macro-grid {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .target-row {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .food-form,
  .whoop-form {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .food-item {
    align-items: flex-start;
  }

  .food-item-right {
    align-items: flex-end;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .whoop-history-row {
    grid-template-columns: 1fr auto;
  }

  .whoop-history-row > div:nth-child(2) {
    grid-column: 1;
  }

  .whoop-history-row .delete-button {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}


@media (max-width: 600px) {
  .adaptive-header {
    flex-direction: column;
  }

  .adaptive-total {
    justify-items: start;
  }

  .adjustment-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .adjustment-row > strong {
    justify-self: start;
  }
}


.barcode-modal {
  width: min(650px, 100%);
}

.barcode-intro {
  margin-bottom: 18px;
}

.barcode-reader {
  min-height: 210px;
  overflow: hidden;
  border: 1px solid #d0d5dd;
  border-radius: 18px;
  background: #f8fafc;
}

.barcode-reader > div {
  border: 0 !important;
}

.barcode-reader video {
  border-radius: 14px;
}

.barcode-reader button,
.barcode-reader select,
.barcode-reader input {
  min-height: 40px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: white;
  color: #344054;
  font: inherit;
}

.barcode-reader button {
  padding: 0 13px;
  cursor: pointer;
}

.barcode-reader a {
  color: #16835b;
}

.barcode-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #98a2b3;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.barcode-divider::before,
.barcode-divider::after {
  height: 1px;
  flex: 1;
  background: #e4e7ec;
  content: '';
}

.barcode-lookup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}

.barcode-lookup-form label,
.serving-label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 700;
}

.barcode-lookup-form input,
.serving-label input {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  outline: none;
  color: #101828;
}

.barcode-lookup-form input:focus,
.serving-label input:focus {
  border-color: #16835b;
  box-shadow: 0 0 0 4px rgba(22, 131, 91, 0.12);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.barcode-message {
  margin: 14px 0 0;
  color: #667085;
  font-size: 0.86rem;
}

.barcode-error {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #fecdca;
  border-radius: 14px;
  background: #fef3f2;
}

.barcode-error strong {
  color: #b42318;
}

.barcode-error p {
  margin: 5px 0 8px;
  color: #912018;
  font-size: 0.86rem;
}

.barcode-product-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d1fadf;
  border-radius: 18px;
  background: #f6fef9;
}

.barcode-product-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.barcode-product-header h3 {
  margin: 4px 0 5px;
  color: #101828;
  font-size: 1.15rem;
}

.barcode-product-header p:not(.card-label) {
  margin: 0;
  color: #667085;
  font-size: 0.86rem;
}

.barcode-product-image,
.barcode-product-placeholder {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 14px;
  background: white;
  object-fit: contain;
}

.barcode-product-placeholder {
  display: grid;
  place-items: center;
  color: #16835b;
  font-size: 1.7rem;
}

.serving-label {
  margin-top: 18px;
}

.serving-input-wrap {
  position: relative;
  width: min(220px, 100%);
}

.serving-input-wrap input {
  padding-right: 48px;
}

.serving-input-wrap span {
  position: absolute;
  top: 50%;
  right: 15px;
  color: #667085;
  transform: translateY(-50%);
}

.barcode-nutrition-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.barcode-nutrition-grid > div {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: white;
}

.barcode-nutrition-grid span {
  color: #667085;
  font-size: 0.74rem;
}

.barcode-nutrition-grid strong {
  color: #101828;
  font-size: 0.88rem;
}

.barcode-source-note {
  margin: 14px 0 0;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.45;
}

.barcode-actions {
  margin-top: 16px;
}

@media (max-width: 560px) {
  .barcode-lookup-form {
    grid-template-columns: 1fr;
  }

  .barcode-nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .barcode-product-header {
    align-items: flex-start;
  }

  .barcode-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.food-library {
  margin-bottom: 28px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.library-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: white;
  box-shadow: 0 7px 22px rgba(16, 24, 40, 0.05);
}

.library-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.library-panel-heading h3 {
  margin: 0 0 4px;
  color: #101828;
  font-size: 1rem;
}

.library-panel-heading p {
  margin: 0;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.4;
}

.library-panel-heading > span {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #16835b;
  font-size: 0.8rem;
  font-weight: 800;
}

.library-empty {
  padding: 20px 12px;
  border: 1px dashed #d0d5dd;
  border-radius: 14px;
  text-align: center;
}

.library-empty strong {
  display: block;
  color: #101828;
  font-size: 0.9rem;
}

.library-empty p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 0.8rem;
}

.quick-food-list {
  display: grid;
  gap: 10px;
}

.quick-food-row {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  background: #fcfcfd;
}

.quick-food-main {
  min-width: 0;
}

.quick-food-main strong {
  display: block;
  overflow: hidden;
  color: #101828;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-food-main span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-food-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-primary-button,
.mini-secondary-button,
.mini-delete-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

.mini-primary-button {
  border: 1px solid #16835b;
  background: #16835b;
  color: white;
}

.mini-secondary-button {
  border: 1px solid #d0d5dd;
  background: white;
  color: #344054;
}

.mini-delete-button {
  margin-left: auto;
  border: 1px solid #fecdca;
  background: #fff5f4;
  color: #b42318;
}

.food-item-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.save-food-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #16835b;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.save-food-button:disabled {
  color: #98a2b3;
  cursor: default;
}

.food-form-note {
  margin: -8px 0 18px;
}

@media (max-width: 760px) {
  .library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .quick-food-main span {
    white-space: normal;
  }

  .mini-delete-button {
    margin-left: 0;
  }

  .food-item-buttons {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }
}


/* Saved meals */
.saved-meals-section {
  margin-bottom: 28px;
}

.meal-section-heading {
  align-items: center;
}

.section-primary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #16835b;
  border-radius: 12px;
  background: #16835b;
  color: white;
  font-weight: 750;
  cursor: pointer;
}

.meal-empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px dashed #b7c0cc;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.meal-empty-state strong {
  color: #101828;
}

.meal-empty-state p {
  max-width: 600px;
  margin: 6px 0 0;
  color: #667085;
  line-height: 1.45;
}

.meal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.meal-card {
  padding: 19px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: white;
  box-shadow: 0 7px 22px rgba(16, 24, 40, 0.05);
}

.meal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.meal-card-top h3 {
  margin: 5px 0 0;
  color: #101828;
  font-size: 1.18rem;
}

.meal-card-top > strong {
  color: #16835b;
  white-space: nowrap;
}

.meal-item-preview {
  min-height: 42px;
  margin: 13px 0;
  color: #667085;
  font-size: 0.88rem;
  line-height: 1.45;
}

.meal-macro-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.meal-macro-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 700;
}

.meal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meal-builder-modal {
  width: min(900px, 100%);
}

.meal-builder-form {
  display: grid;
  gap: 18px;
}

.meal-name-label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 700;
}

.meal-name-label input {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  outline: none;
  background: white;
  color: #101828;
}

.meal-name-label input:focus {
  border-color: #16835b;
  box-shadow: 0 0 0 4px rgba(22, 131, 91, 0.12);
}

.meal-draft-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.meal-draft-summary > div {
  display: grid;
  gap: 4px;
  padding: 13px;
  border-radius: 14px;
  background: #f8fafc;
}

.meal-draft-summary span {
  color: #667085;
  font-size: 0.78rem;
}

.meal-draft-summary strong {
  color: #101828;
}

.meal-builder-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.meal-builder-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fcfcfd;
}

.meal-builder-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.meal-builder-panel-heading h3 {
  margin: 0;
  color: #101828;
  font-size: 1rem;
}

.meal-builder-panel-heading p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 0.8rem;
  line-height: 1.35;
}

.meal-selected-list,
.meal-source-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow-y: auto;
  padding-right: 3px;
}

.meal-selected-row,
.meal-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: white;
}

.meal-selected-row > div,
.meal-source-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.meal-selected-row strong,
.meal-source-row strong {
  overflow: hidden;
  color: #101828;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-selected-row span,
.meal-source-row span {
  color: #667085;
  font-size: 0.76rem;
}

.meal-builder-empty {
  padding: 24px 14px;
}

.primary-button:disabled,
.section-primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 760px) {
  .meal-card-grid,
  .meal-builder-columns {
    grid-template-columns: 1fr;
  }

  .meal-empty-state {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .meal-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .section-primary-button {
    width: 100%;
  }

  .meal-draft-summary {
    grid-template-columns: 1fr;
  }

  .meal-card-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}


/* AI meal-photo estimator */
.photo-meal-modal {
  width: min(900px, 100%);
}

.photo-safety-note {
  margin-bottom: 18px;
  padding: 15px 17px;
  border: 1px solid #fec84b;
  border-radius: 15px;
  background: #fffaeb;
}

.photo-safety-note strong {
  color: #7a2e0e;
}

.photo-safety-note p {
  margin: 5px 0 0;
  color: #93370d;
  font-size: 0.88rem;
  line-height: 1.45;
}

.photo-picker {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px dashed #98a2b3;
  border-radius: 17px;
  background: #f9fafb;
  color: #344054;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.photo-picker:hover {
  border-color: #16835b;
  background: #f0fdf4;
}

.photo-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.photo-picker-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #ecfdf3;
  color: #16835b;
  font-size: 1.45rem;
}

.photo-picker > span:last-child {
  display: grid;
  gap: 4px;
}

.photo-picker small {
  color: #667085;
  font-weight: 500;
}

.photo-preview-wrap {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.photo-preview {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  border-radius: 18px;
  background: #101828;
}

.photo-analyze-button {
  justify-self: end;
}

.photo-status {
  margin: 16px 0 0;
  color: #667085;
  font-weight: 700;
}

.photo-error {
  margin-top: 16px;
}

.ai-results {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #e4e7ec;
}

.ai-result-hero {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid #d1fadf;
  border-radius: 22px;
  background: linear-gradient(145deg, #f6fef9, #ffffff);
  box-shadow: 0 14px 35px rgba(16, 24, 40, 0.07);
}

.ai-result-photo-wrap {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 17px;
  background: #101828;
}

.ai-result-photo {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 330px;
  object-fit: cover;
}

.ai-photo-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.82);
  color: white;
  font-size: 0.74rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.ai-result-overview {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.ai-result-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ai-result-title-row h3,
.ai-section-heading h3 {
  margin: 4px 0 0;
  color: #101828;
  font-size: 1.25rem;
}

.ai-meal-name-field {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 750;
}

.ai-meal-name-field input,
.ai-item-fields input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 11px;
  outline: none;
  background: white;
  color: #101828;
}

.ai-meal-name-field input {
  font-size: 1.02rem;
  font-weight: 750;
}

.ai-meal-name-field input:focus,
.ai-item-fields input:focus {
  border-color: #16835b;
  box-shadow: 0 0 0 4px rgba(22, 131, 91, 0.12);
}

.confidence-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.confidence-badge-large {
  min-height: 32px;
  padding: 6px 11px;
}

.confidence-badge.high {
  background: #dcfae6;
  color: #067647;
}

.confidence-badge.medium {
  background: #fef0c7;
  color: #b54708;
}

.confidence-badge.low {
  background: #fee4e2;
  color: #b42318;
}

.ai-overview-copy {
  margin: 12px 0 0;
  color: #667085;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ai-review-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ai-review-stats span {
  padding: 7px 10px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: white;
  color: #667085;
  font-size: 0.76rem;
}

.ai-review-stats strong {
  color: #101828;
}

.ai-warning-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid #fedf89;
  border-radius: 16px;
  background: #fffaeb;
}

.ai-warning-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fdb022;
  color: #7a2e0e;
  font-weight: 900;
}

.ai-warning-card strong {
  color: #7a2e0e;
}

.ai-warning-card p {
  margin: 4px 0 0;
  color: #93370d;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ai-totals-panel,
.ai-food-review-section {
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 19px;
  background: #ffffff;
}

.ai-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ai-section-heading > span {
  color: #667085;
  font-size: 0.8rem;
}

.ai-total-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 10px;
}

.ai-total-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #f9fafb;
}

.ai-total-grid > .ai-total-primary {
  border-color: #a6f4c5;
  background: #ecfdf3;
}

.ai-total-grid span {
  color: #667085;
  font-size: 0.76rem;
}

.ai-total-grid strong {
  overflow-wrap: anywhere;
  color: #101828;
  font-size: 1.02rem;
}

.ai-total-primary strong {
  color: #067647;
  font-size: 1.15rem;
}

.ai-item-list {
  display: grid;
  gap: 14px;
}

.ai-item-card {
  padding: 17px;
  border: 1px solid #e4e7ec;
  border-left-width: 4px;
  border-radius: 17px;
  background: white;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.ai-item-card.confidence-high {
  border-left-color: #12b76a;
}

.ai-item-card.confidence-medium {
  border-left-color: #f79009;
}

.ai-item-card.confidence-low {
  border-left-color: #f04438;
}

.ai-item-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-item-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #ecfdf3;
  color: #067647;
  font-weight: 850;
}

.ai-item-title-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.ai-item-title-copy > span {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-item-title-copy > strong {
  overflow-wrap: anywhere;
  color: #101828;
}

.ai-item-quick-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ai-item-quick-summary span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 0.72rem;
}

.ai-item-heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ai-field-group + .ai-field-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f2f4f7;
}

.ai-field-group h4 {
  margin: 0 0 9px;
  color: #475467;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-item-fields {
  display: grid;
  gap: 11px;
}

.ai-item-fields-identity {
  grid-template-columns: minmax(0, 2fr) minmax(120px, 0.75fr);
}

.ai-item-fields-nutrition {
  grid-template-columns: repeat(5, 1fr);
}

.ai-item-fields label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #344054;
  font-size: 0.76rem;
  font-weight: 700;
}

.ai-item-note {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #f9fafb;
}

.ai-item-note strong {
  color: #344054;
  font-size: 0.78rem;
}

.ai-item-note p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 0.8rem;
  line-height: 1.45;
}

.ai-add-item-button {
  margin-top: 14px;
}

.photo-result-actions {
  position: sticky;
  bottom: -24px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 -24px -24px;
  padding: 16px 24px 24px;
  border-top: 1px solid #e4e7ec;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 72%,
    rgba(255, 255, 255, 0.92)
  );
  backdrop-filter: blur(10px);
}

@media (max-width: 760px) {
  .ai-result-hero {
    grid-template-columns: 1fr;
  }

  .ai-result-photo-wrap,
  .ai-result-photo {
    min-height: 190px;
    max-height: 280px;
  }

  .ai-total-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ai-total-primary {
    grid-column: span 2;
  }

  .ai-item-fields-nutrition {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .photo-meal-modal {
    padding: 18px;
  }

  .ai-result-hero,
  .ai-totals-panel,
  .ai-food-review-section {
    padding: 14px;
  }

  .ai-result-title-row,
  .ai-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-result-title-row .confidence-badge,
  .ai-section-heading > span {
    align-self: flex-start;
  }

  .ai-total-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-total-primary {
    grid-column: 1 / -1;
  }

  .ai-item-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ai-item-heading-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .ai-item-fields-identity,
  .ai-item-fields-nutrition {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-name-field {
    grid-column: 1 / -1;
  }

  .photo-result-actions {
    bottom: -18px;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 -18px -18px;
    padding: 14px 18px 18px;
  }
}

@media (max-width: 390px) {
  .ai-item-fields-identity,
  .ai-item-fields-nutrition {
    grid-template-columns: 1fr;
  }

  .ai-name-field {
    grid-column: auto;
  }
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #475467;
  font-size: 0.75rem;
  font-weight: 800;
}

button.profile-circle {
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.15);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

button.profile-circle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.2);
}

.app-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -8px 0 20px;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 650;
}

.offline-banner {
  border: 1px solid #fec84b;
  background: #fffaeb;
  color: #7a2e0e;
}

.update-banner {
  border: 1px solid #75e0a7;
  background: #ecfdf3;
  color: #085d3a;
}

.update-banner button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 850;
  cursor: pointer;
}

.settings-modal {
  width: min(700px, 100%);
}

.settings-form {
  display: grid;
  gap: 18px;
}

.settings-section {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #fcfcfd;
}

.settings-section + .settings-section {
  margin-top: 16px;
}

.settings-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.settings-section-heading h3 {
  margin: 0 0 4px;
  color: #101828;
  font-size: 1rem;
}

.settings-section-heading p {
  margin: 0;
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.45;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.calorie-settings-grid {
  grid-template-columns: repeat(4, 1fr);
}

.settings-grid label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 750;
}

.settings-grid input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  outline: none;
  background: white;
  color: #101828;
}

.settings-grid input:focus {
  border-color: #16835b;
  box-shadow: 0 0 0 4px rgba(22, 131, 91, 0.12);
}

.settings-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.import-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.import-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.settings-info-card {
  padding: 15px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  background: white;
}

.settings-info-card strong {
  display: block;
  margin-bottom: 5px;
  color: #101828;
}

.settings-info-card p {
  margin: 0;
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.5;
}

.warning-info-card {
  border-color: #fedf89;
  background: #fffaeb;
}

.danger-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #fda29b;
  border-radius: 12px;
  background: #fff;
  color: #b42318;
  font-weight: 800;
  cursor: pointer;
}

.settings-message {
  position: sticky;
  bottom: 0;
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #75e0a7;
  border-radius: 13px;
  background: #ecfdf3;
  color: #085d3a;
  font-size: 0.88rem;
  font-weight: 750;
}

@media (max-width: 680px) {
  .version-chip {
    display: none;
  }

  .calorie-settings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .settings-grid,
  .calorie-settings-grid,
  .settings-action-grid {
    grid-template-columns: 1fr;
  }

  .settings-section {
    padding: 15px;
  }

  .app-status-banner {
    align-items: flex-start;
  }
}


.morning-reminder-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #f5c451;
  border-radius: 16px;
  background: #fffaeb;
  box-shadow: 0 7px 22px rgba(16, 24, 40, 0.04);
}

.morning-reminder-banner strong {
  color: #7a2e0e;
}

.morning-reminder-banner p {
  margin: 4px 0 0;
  color: #854a0e;
  font-size: 0.9rem;
}

.morning-reminder-banner button {
  min-height: 42px;
  padding: 0 16px;
  flex-shrink: 0;
  border: 1px solid #b54708;
  border-radius: 11px;
  background: #b54708;
  color: white;
  font-weight: 750;
  cursor: pointer;
}

.reminder-settings-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #f9fafb;
}

.reminder-settings-card > label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 0.88rem;
  font-weight: 700;
}

.reminder-settings-card input[type='time'] {
  width: min(220px, 100%);
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: white;
  color: #101828;
  font: inherit;
}

.reminder-status-row {
  display: flex;
  align-items: center;
}

.reminder-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 750;
}

.reminder-status.active {
  background: #ecfdf3;
  color: #067647;
}

@media (max-width: 560px) {
  .morning-reminder-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .morning-reminder-banner button {
    width: 100%;
  }
}

/* Coach test onboarding */
.onboarding-shell {
  min-height: 100vh;
  padding: max(28px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(47, 129, 247, 0.18), transparent 34%),
    linear-gradient(145deg, #0b1220 0%, #17243a 55%, #0f1b2e 100%);
}

.onboarding-card {
  width: min(100%, 760px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.onboarding-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.onboarding-brand .eyebrow {
  margin: 0 0 2px;
}

.onboarding-brand strong {
  color: #344054;
  font-size: 0.95rem;
}

.onboarding-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #101828;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.onboarding-copy {
  margin-bottom: 26px;
}

.onboarding-copy h1 {
  margin: 12px 0 10px;
  color: #101828;
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.onboarding-copy p {
  max-width: 620px;
  margin: 0;
  color: #475467;
  font-size: 1.02rem;
  line-height: 1.65;
}

.test-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #175cd3;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.onboarding-form {
  display: grid;
  gap: 22px;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.onboarding-grid label,
.settings-grid label {
  display: grid;
  gap: 8px;
}

.onboarding-grid label {
  color: #344054;
  font-size: 0.87rem;
  font-weight: 800;
}

.onboarding-grid .full-width {
  grid-column: 1 / -1;
}

.onboarding-grid input,
.onboarding-grid select,
.settings-grid select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #fff;
  color: #101828;
  font: inherit;
  font-weight: 600;
  outline: none;
}

.onboarding-grid input:focus,
.onboarding-grid select:focus,
.settings-grid select:focus {
  border-color: #2e6ff2;
  box-shadow: 0 0 0 4px rgba(46, 111, 242, 0.12);
}

.onboarding-submit {
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: #101828;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.onboarding-submit:hover {
  background: #1d2939;
}

.onboarding-privacy {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f2f4f7;
  color: #475467;
  font-size: 0.86rem;
  line-height: 1.55;
}

.test-version-chip {
  background: #eaf2ff;
  color: #175cd3;
}

@media (max-width: 620px) {
  .onboarding-shell {
    padding-inline: 10px;
    align-items: start;
  }

  .onboarding-card {
    padding: 24px 18px 28px;
    border-radius: 22px;
  }

  .onboarding-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-grid .full-width {
    grid-column: auto;
  }
}
