

.account-card .hub-card-img {
  transform: scale(1.15);
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:#0f172a;
  color:white;
  min-height:100vh;
}
.account-card .hub-card-preview {
  overflow: hidden;
  border-radius: 22px;
}
.hub-card img{
  width:100%;
  height:180px;

  object-fit:cover;
  object-position:center;

  border-radius:18px;

  display:block;
}
/* =========================
   GLOBAL LAYOUT
========================= */

.hero,
.scan-wrap{
  min-height:100vh;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:2rem;
}

.hero{
  text-align:center;
}

.scan-card{
  width:100%;
  max-width:420px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius:28px;
  padding:2rem;
  text-align:center;
  backdrop-filter:blur(12px);
}

h1{
  font-size:2.4rem;
  margin-bottom:.75rem;
}

.sub{
  font-size:1.05rem;
  opacity:.78;
  line-height:1.5;
  margin-bottom:1.5rem;
}

.hub-card img{
  width:100%;
  height:240px;
  object-fit:cover;
  object-position:center;
}
/* =========================
   BUTTONS
========================= */

.start-btn{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:.55rem;

  padding:1rem 1.25rem;
  border-radius:999px;

  background:#2563eb;
  color:white;

  border:none;
  cursor:pointer;

  font-size:1rem;
  font-weight:800;
  text-decoration:none;

  margin-top:1rem;
  transition:.2s ease;
}

.start-btn:hover{
  transform:translateY(-1px);
  background:#3b82f6;
}

.start-btn:disabled{
  opacity:.65;
  cursor:not-allowed;
  transform:none;
}

.secondary-btn{
  display:flex;
  align-items:center;
  justify-content:center;

  width:100%;
  padding:1rem 1.25rem;

  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);

  background:rgba(255,255,255,.06);
  color:white;

  font-weight:800;
  text-decoration:none;

  transition:.2s ease;
}

.secondary-btn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.10);
}

.wise-links{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:22px;
}

.wise-links .secondary-btn{
  width:100%;
  max-width:100%;
}

/* =========================
   FORMS
========================= */

.goal-select{
  width:100%;

  padding:1rem;
  border-radius:16px;

  border:1px solid rgba(255,255,255,.12);
  margin-bottom:1rem;

  background:#1e293b;
  color:white;

  font-size:1rem;
  line-height:1.4;
}

textarea.goal-select{
  min-height:104px;
  resize:vertical;
}

/* =========================
   UPLOAD / SCANNER
========================= */

.upload-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  width:100%;
  margin:1.25rem 0 1rem;
}

.upload-half{
  min-height:138px;
  padding:28px 14px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  border:1.5px solid rgba(37,99,235,.35);
  border-radius:26px;

  background:linear-gradient(
    180deg,
    rgba(37,99,235,.10),
    rgba(37,99,235,.045)
  );

  text-align:center;
  cursor:pointer;

  box-shadow:0 10px 24px rgba(15,23,42,.08);
  transition:.2s ease;
}

.upload-half:hover{
  border-color:rgba(37,99,235,.75);
  background:rgba(37,99,235,.10);
  transform:translateY(-1px);
}

.upload-half{
  position:relative;
  overflow:hidden;
}

.upload-half input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}
.upload-title{
  display:block;
  font-size:1.15rem;
  font-weight:900;
  margin-bottom:.35rem;
}

.upload-sub{
  display:block;
  font-size:.92rem;
  opacity:.68;
  line-height:1.35;
}

.preview{
  width:100%;
  max-height:300px;
  object-fit:cover;
  border-radius:20px;
  margin:1rem 0;
}

.loading-card{
  margin-top:1rem;
  padding:1.25rem 1rem;
  border-radius:20px;

  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);

  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.loading-card:not(.hidden){
  display:flex;
}

.scanner{
  width:56px;
  height:56px;
  border-radius:50%;

  border:4px solid rgba(255,255,255,.18);
  border-top-color:#2563eb;

  animation:spin 1s linear infinite;
  margin-bottom:1rem;
}

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

/* =========================
   RESULT CARD
========================= */

.result-card{
  margin-top:1rem;
  padding:1.5rem;

  border-radius:22px;

  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
}

.result-card h2{
  margin-bottom:.75rem;
}

.calories{
  font-size:2.1rem;
  font-weight:900;
  margin:1rem 0;
}

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

.macro-grid div{
  background:rgba(255,255,255,.08);
  border-radius:14px;
  padding:.8rem .5rem;
}

.macro-grid strong{
  display:block;
  font-size:.8rem;
  opacity:.75;
  margin-bottom:.35rem;
}

.feedback{
  margin-top:.75rem;
  line-height:1.55;
  opacity:.9;
}

.caution{
  margin-top:1rem;
  font-size:.88rem;
  line-height:1.4;
  opacity:.65;
}

.commit-actions{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:24px;
}
/* =========================
   RANGE / SUMMARY CARDS
========================= */

.range-card{
  margin-top:1rem;
  padding:26px;

  border-radius:22px;

  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.range-label{
  font-size:.8rem;
  opacity:.7;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:.65rem;
}

.range-output{
  font-size:1rem;
  line-height:1.65;
}

.range-note{
  margin-top:.75rem;
  font-size:.8rem;
  opacity:.6;
}

/* =========================
   WISE PAGE
========================= */

.quick-log-grid{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:1.5rem;
}

#wiseChatInput{
  margin-bottom:22px;
}

#sendWiseChatBtn{
  margin-bottom:18px;
}

#wiseChatReply{
  margin-top:4px;
  line-height:1.5;
}

#wiseChatLabel{
  margin-top:18px;
  margin-bottom:14px;
  letter-spacing:2px;
  opacity:.75;
}

.hero-note{
  margin-top:2rem;
  font-size:.95rem;
  opacity:.65;
  text-align:center;
}

/* =========================
   HISTORY / LOGS
========================= */

.history-section{
  width:100%;
  margin-top:1.5rem;
  text-align:left;
}

.history-section h2{
  margin-bottom:1rem;
}

.history-item{
  display:flex;
  gap:1rem;
  align-items:center;

  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.08);

  border-radius:16px;
  padding:1rem;
  margin-bottom:.75rem;
}

.history-item strong{
  display:block;
  margin-bottom:.35rem;
}

.history-meta{
  margin-top:.35rem;
  font-size:.9rem;
  opacity:.72;
}

.history-thumb{
  width:64px;
  height:64px;
  border-radius:14px;
  object-fit:cover;
  flex-shrink:0;
}

/* =========================
   FRIDGE
========================= */

#mealsContainer{
  width:100%;
}

#mealsContainer .history-section{
  display:flex;
  flex-direction:column;
  gap:1rem;
}

#mealsContainer .history-item{
  display:block;
  width:100%;
  padding:1rem;

  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}

#mealsContainer .history-item strong{
  display:block;
  font-size:1.1rem;
  margin-bottom:.35rem;
}

#mealsContainer .history-meta{
  margin-bottom:.75rem;
  opacity:.8;
}

#mealsContainer .feedback{
  line-height:1.45;
  margin:.5rem 0;
}

#mealsContainer ol{
  margin:.75rem 0 0 1.25rem;
  padding:0;
}

#mealsContainer li{
  margin-bottom:.5rem;
  line-height:1.4;
}

/* =========================
   SETUP
========================= */

.setup-toggles{
  display:flex;
  gap:.75rem;
  margin:1.25rem auto;
  width:100%;
  max-width:360px;
}

.mini-toggle{
  flex:1;

  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;

  padding:.75rem 1rem;

  background:rgba(255,255,255,.10);
  color:#ffffff;

  font-weight:900;
  font-size:.95rem;

  cursor:pointer;

  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

.mini-toggle:active{
  transform:scale(.97);
}

/* =========================
   DAY MODE
========================= */

body[data-theme="day"]{
  background:#f3f7ff;
  color:#111827;
}

body[data-theme="day"] .scan-card{
  background:#ffffff;
  color:#111827;

  border-color:
    rgba(0,0,0,.12);
}

body[data-theme="day"] .goal-select,
body[data-theme="day"] .range-card,
body[data-theme="day"] .result-card,
body[data-theme="day"] .loading-card{
  background:#f7faff;
  color:#111827;

  border-color:
    rgba(0,0,0,.14);
}

body[data-theme="day"] input,
body[data-theme="day"] textarea,
body[data-theme="day"] select{
  color:#111827;
}

body[data-theme="day"] input::placeholder,
body[data-theme="day"] textarea::placeholder{
  color:#6b7280;
  opacity:1;
}

body[data-theme="day"] .secondary-btn,
body[data-theme="day"] .mini-toggle{
  background:#eaf1ff;
  color:#111827;

  border-color:
    rgba(0,0,0,.14);
}

body[data-theme="day"] .sub,
body[data-theme="day"] .range-output,
body[data-theme="day"] .hero-note,
body[data-theme="day"] .app-footer,
body[data-theme="day"] .profile-value{
  color:#1f2937;
}

body[data-theme="day"] .range-label,
body[data-theme="day"] .profile-label{
  color:#4b5563;
}

body[data-theme="day"] .upload-half{
  background:
    linear-gradient(
      180deg,
      rgba(37,99,235,.10),
      rgba(37,99,235,.035)
    );

  border-color:
    rgba(37,99,235,.38);
}

body[data-theme="day"] .macro-grid div{
  background:#eef4ff;
}
/* =========================
   NIGHT MODE
========================= */

body[data-theme="night"]{
  background:#071225;
  color:#ffffff;
}

body[data-theme="night"] .scan-card{
  background:rgba(255,255,255,.08);
  color:#ffffff;
}

body[data-theme="night"] .goal-select,
body[data-theme="night"] .range-card,
body[data-theme="night"] .result-card,
body[data-theme="night"] .loading-card{
  background:rgba(255,255,255,.08);
  color:#ffffff;
}

body[data-theme="night"] .mini-toggle{
  background:rgba(255,255,255,.12);
  color:#ffffff;
}

/* =========================
   MOBILE
========================= */

@media(max-width:480px){
  .hero,
  .scan-wrap{
    padding:1rem;
  }

  .scan-card{
    padding:1.5rem;
    border-radius:24px;
  }

  h1{
    font-size:2rem;
  }

  .sub{
    margin-bottom:1.25rem;
  }

  .upload-actions{
    gap:12px;
  }

  .upload-half{
    min-height:126px;
    padding:24px 12px;
    border-radius:24px;
  }

  .macro-grid{
    gap:.5rem;
  }

  .range-card{
    padding:22px;
  }
}
.top-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin-bottom:1rem;
  padding:.7rem 1.1rem;

  border-radius:999px;

  border:1px solid rgba(255,255,255,.14);

  background:rgba(255,255,255,.06);

  color:inherit;

  font-weight:800;
  text-decoration:none;

  transition:.2s ease;
}

.top-link:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.10);
}
body[data-theme="day"] .top-link{
  background:#eaf1ff;
  color:#102033;
  border-color:rgba(0,0,0,.14);
}
.meal-card{
  display:flex;
  flex-direction:column;
  gap:14px;
}

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

.meal-title{
  display:block;
  font-size:1rem;
  margin-bottom:4px;
}

.meal-time{
  font-size:.9rem;
  opacity:.7;
  white-space:nowrap;
}

.meal-steps{
  margin-left:1.25rem;
  display:flex;
  flex-direction:column;
  gap:.45rem;
}

.make-this-btn{
  margin-top:.5rem;
}
.grocery-card{
  margin-top:1rem;
}



.pantry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pantry-chips button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.pantry-chips button.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
}

.pantry-add-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.pantry-add-row input {
  flex: 1;
  border-radius: 12px;
  border: none;
  padding: 11px 12px;
}

.pantry-add-row button {
  border-radius: 12px;
  border: none;
  padding: 0 14px;
  font-weight: 700;
}#pantryNotes{
  margin-top:1rem;
  margin-bottom:1rem;

  min-height:80px;

  border-radius:18px;

  padding:1rem;

  resize:none;
}
#pantryNotes{
  margin-top:1rem;
  margin-bottom:1rem;
}
.fridge-action-btn {
  width: 100%;
  min-height: 74px;
  border-radius: 999px;
  border: 2px solid rgba(200, 225, 255, 0.65);
  background: rgba(140, 175, 220, 0.22);
  color: white;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}





.pantry-copy {
  margin: 0 0 12px;
  color: white;
  opacity: 0.82;
  font-weight: 700;
}

.pantry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pantry-chips button {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: white;
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
}

.pantry-chips button.active {
  background: rgba(60, 135, 255, 0.45);
  border-color: rgba(130, 185, 255, 0.9);
}

.pantry-add-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.pantry-add-row input {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  border: none;
  padding: 12px;
}

.pantry-add-row button {
  border-radius: 14px;
  border: none;
  padding: 0 16px;
  font-weight: 900;
}
.pantry-companion{
  margin-top:1.25rem;
  margin-bottom:1.5rem;

  display:flex;
  flex-direction:column;
  gap:1rem;
}
.pantry-btn{
  width:100%;
}

.pantry-panel{
  flex-direction:column;
  gap:1rem;
  padding:1rem;
  border-radius:20px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}

.pantry-panel:not(.hidden){
  display:flex;
}

.pantry-panel:not(.hidden){
  display:flex;
}

.hidden{
  display:none !important;
}
.wise-links{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:1rem;

  margin-top:1.5rem;
}

.wise-links a{
  width:100%;
  max-width:320px;

  text-align:center;
}

.profile-links{
  display:flex;
  flex-direction:column;

  gap:14px;

  margin-top:1.75rem;
  padding-bottom:1rem;
}

.profile-links .secondary-btn{
  width:100%;

  padding:1rem 1.2rem;

  border-radius:18px;

  text-decoration:none;
}

.profile-avatar{
  font-size:2rem !important;
  font-weight:800;
  line-height:1;
  margin-bottom:0.5rem;
}
.hub-wrap{
  max-width:1180px;
  margin:0 auto;
  padding:2rem 1rem 5rem;
  color:#f8fafc;
}

.hub-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:3rem;
}

.hub-header h1{
  margin:0;
  font-size:2rem;
}

.hub-header p{
  margin:.25rem 0 0;
  color:#94a3b8;
}

.hub-profile{
  color:#f8fafc;
  text-decoration:none;
  font-weight:800;
}

.hub-hero{
  margin-bottom:2rem;
}

.hub-hero h2{
  font-size:clamp(2.4rem, 7vw, 5rem);
  line-height:.95;
  margin:0 0 1rem;
}

.hub-hero p{
  color:#cbd5e1;
  font-size:1.15rem;
}

.hub-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1rem;
}

.hub-card{
  display:flex;
  flex-direction:column;
  gap:1rem;
  padding:1rem;
  min-height:420px;
  border-radius:24px;
  background:rgba(15,23,42,.88);
  border:1px solid rgba(255,255,255,.1);
  text-decoration:none;
  color:#f8fafc;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
}

.hub-card img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:18px;
}

.hub-card h3{
  margin:0;
  font-size:1.4rem;
}

.hub-card p{
  margin:0;
  color:#cbd5e1;
  line-height:1.5;
}

.hub-card span{
  margin-top:auto;
  font-weight:900;
}

.hub-card.green h3,
.hub-card.green span{
  color:#22c55e;
}

.hub-card.blue h3,
.hub-card.blue span{
  color:#38bdf8;
}

.hub-card.purple h3,
.hub-card.purple span{
  color:#a855f7;
}

.hub-card.gold h3,
.hub-card.gold span{
  color:#f59e0b;
}

.hub-note{
  margin-top:2rem;
  padding:1.5rem;
  border-radius:24px;
  background:rgba(15,23,42,.72);
  border:1px solid rgba(255,255,255,.08);
}

.hub-note h3{
  margin:0 0 .5rem;
}

.hub-note p{
  margin:0;
  color:#cbd5e1;
}

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

@media (max-width:560px){
  .hub-header{
    margin-bottom:2rem;
  }

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

  .hub-card{
    min-height:auto;
  }
}.house-image{
  width:100%;
  max-width:520px;
  display:block;
  margin:1.5rem auto;
  border-radius:24px;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
}
.goal-select{
  width:100%;

  margin-top:1rem;
  padding:1rem 1.1rem;

  border-radius:18px;

  border:
    1px solid rgba(255,255,255,.12);

  background:
    rgba(255,255,255,.06);

  color:#fff;

  font-size:1rem;
  font-weight:600;
  line-height:1.4;

  outline:none;

  resize:none;

  transition:
    border .2s ease,
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 24px rgba(0,0,0,.22);

  backdrop-filter:blur(10px);
}

.goal-select::placeholder{
  color:
    rgba(255,255,255,.45);

  font-weight:500;
}

.goal-select:focus{
  border:
    1px solid rgba(96,165,250,.7);

  background:
    rgba(255,255,255,.09);

  box-shadow:
    0 0 0 4px rgba(59,130,246,.15),
    0 12px 30px rgba(0,0,0,.28);

  transform:
    translateY(-1px);
}
.guide-symbol{
  position:relative;
  width:72px;
  height:72px;
  margin:0 auto 1rem;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:4rem;
  line-height:1;

  color:var(--guide-color, #5eead4);
}

.gender-stamp{
  position:absolute;
  right:-.1rem;
  bottom:.2rem;

  width:1.6rem;
  height:1.6rem;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:999px;
  background:rgba(15,23,42,.92);
  border:1px solid rgba(255,255,255,.22);

  font-size:1rem;
  font-weight:900;
  color:#f8fafc;
}

.profile-guide{
  margin:.25rem 0 0;
  color:#94a3b8;
  font-size:.9rem;
  font-weight:700;
}
.guide-shape{
  font-size:2.6rem;
  font-weight:900;

  line-height:1;

  color:
    rgba(255,255,255,.92);

  text-shadow:
    0 1px 0 rgba(0,0,0,.45),
    0 -1px 0 rgba(255,255,255,.04);

  mix-blend-mode:overlay;

  opacity:.92;
}
.meal-list{
  width:100%;

  max-width:420px;

  margin:0 auto;

  padding-left:1.25rem;

  text-align:left;
}

.meal-list li{
  margin:.45rem 0;

  line-height:1.4;
}
.profile-details{
  width:100%;

  max-width:420px;

  margin:1rem auto 0;

  display:flex;
  flex-direction:column;
  gap:.65rem;

  text-align:left;
}

.profile-row{
  display:flex;

  justify-content:space-between;

  align-items:center;

  gap:1rem;

  padding-bottom:.35rem;

  border-bottom:
    1px solid rgba(255,255,255,.08);
}

.profile-label{
  opacity:.7;

  font-size:.92rem;

  letter-spacing:.04em;
}

.profile-value{
  font-weight:700;
}
.profile-avatar{
  display:flex;
  justify-content:center;
  align-items:center;

  margin-bottom:1rem;
}

.profile-guide-mark{
  width:80px;
  height:auto;

  display:block;
  margin:0 auto;
}

.profile-header{
  text-align:center;
}.reset-wrap{
  margin-top:1.25rem;
  margin-bottom:1rem;
}
.quick-actions-board{
  position:relative;
  width:100%;
  margin-top:1.5rem;
}

.quick-actions-image{
  width:100%;
  display:block;
  border-radius:24px;
}

.quick-hotspot{
  position:absolute;
  top:18%;
  height:52%;
  z-index:5;
  display:block;
}

.quick-hotspot-fridge{
  left:4%;
  width:29%;
}

.quick-hotspot-meal{
  left:35.5%;
  width:29%;
}

.quick-hotspot-track{
  left:67%;
  width:29%;
}
#dailyNote,
#reflectionNote{
  margin-bottom:1rem;
}

#saveCheckInBtn{
  margin-top:.75rem;
  margin-bottom:1rem;
}

.wise-links{
  margin-top:1rem;
}
.log-card{
  display:flex;
  flex-direction:column;
  gap:.75rem;
}

.log-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1rem;
}

.log-date{
  margin:0;
  font-weight:900;
  letter-spacing:.08em;
}

.log-time{
  margin:0;
  opacity:.6;
  font-size:.8rem;
  white-space:nowrap;
}

.log-target{
  margin:0;
  opacity:.85;
  font-weight:700;
}

.log-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.65rem;
}

.log-grid span{
  font-weight:700;
}
.welcome-feature{
  margin-bottom:1.8rem;
}

.welcome-feature:last-child{
  margin-bottom:0;
}

.welcome-feature-title{
  display:block;

  margin-bottom:.65rem;

  font-size:.92rem;
  font-weight:700;
  letter-spacing:.08em;

  opacity:.92;
}

.welcome-feature-text{
  margin:0;

  line-height:1.55;

  opacity:.92;
}
.checkin-card{
  margin-bottom: 1.5rem;
}

.checkin-card:last-of-type{
  margin-bottom: 2rem;
}

.checkin-card .goal-select,
.checkin-card textarea,
.checkin-card input{
  margin-top: .65rem;
}

.checkin-card label{
  display:block;
  margin-top: 1.15rem;
  margin-bottom: .35rem;
}

.checkin-card textarea{
  min-height: 130px;
  line-height: 1.55;
}

.checkin-actions{
  margin-top: 2rem;
  display:flex;
  flex-direction:column;
  gap:1rem;
}

.footer-note{
  margin-top: 1.75rem;
  text-align:center;
  opacity:.72;
}
#macroSuggestion{
  font-size:2rem;
  line-height:1.1;
  margin-top:.75rem;
  margin-bottom:.85rem;
}

.macro-style-note{
  font-size:1rem;
  line-height:1.55;
  opacity:.82;
}
.goal-select{
  width:100%;
  display:block;
  margin:0 0 1.15rem;
}

select.goal-select{
  height:64px;
  padding:0 1.25rem;
  appearance:none;
  -webkit-appearance:none;
}

.setup-form select.goal-select,
.scan-card select.goal-select{
  font-size:1rem;
  font-weight:800;
}

.setup-form .goal-select + .goal-select,
.scan-card .goal-select + .goal-select{
  margin-top:1rem;
}

.setup-form input,
.setup-form select,
.scan-card input,
.scan-card select{
  box-sizing:border-box;
}

.setup-form .goal-select option{
  color:#111;
}
.macro-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 0.9rem 0;
}

.macro-row span {
  text-align: left;
}

.macro-row strong {
  text-align: right;
  font-weight: 800;
}
.log-card {
  width: 100%;
  box-sizing: border-box;
}

.history-stack,
#logsContainer,
#fullHistoryContainer {
  width: 100%;
}

.log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.log-date,
.log-time {
  margin: 0;
}

.log-target {
  text-align: left;
  margin: 1rem 0;
}

.log-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.25rem;
  text-align: left;
}

.log-grid span {
  display: block;
}
/* ==========================
   BUTTONS
========================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding:12px 18px;

  border:none;
  border-radius:12px;

  text-decoration:none;

  font-size:15px;
  font-weight:600;

  cursor:pointer;

  transition:.2s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  background:#2563eb;
  color:#fff;
}

.btn-primary:hover{
  opacity:.92;
}
.room-links{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:24px;
  align-items:center;
}

.room-links .btn,
.room-links .secondary-btn{
  width:100%;
  max-width:320px;

  display:flex;
  align-items:center;
  justify-content:center;

  text-align:center;
}
.room-links{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:28px;
}

.room-links a,
.room-links .btn,
.room-links .secondary-btn{
  width:100%;
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  padding:14px 18px;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
  box-sizing:border-box;
}

.landing-sub{
  margin:16px auto 0;
  max-width:380px;
  color:#94a3b8;
  line-height:1.6;
}

.hero-image{
  display:block;
  width:100%;
  max-width:520px;
  margin:28px auto 24px;
  filter:drop-shadow(0 0 40px rgba(34,197,94,.18));
}

.feature-stack{
  margin:28px 0;
  display:grid;
  gap:12px;
  text-align:left;
}
