/* ---- greeting header (Сегодня) ---- */
.greet{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.greet-hi{ margin:0 0 2px; font-size:13px; color:var(--muted); font-weight:700; }
.greet h1{ font-size:28px; }
.mascot{
  width:52px; height:52px; border-radius:50%;
  background:var(--purple-light);
  display:flex; align-items:center; justify-content:center;
  font-size:26px; flex-shrink:0;
}

.page-head{ margin-top:4px; margin-bottom:12px; }
.page-head h2{ font-size:26px; }
.profile-row{ display:flex; align-items:center; gap:12px; }
.avatar{
  width:44px; height:44px; border-radius:50%; flex-shrink:0;
  background:var(--lime);
  color:var(--lime-dark); font-family:'Baloo 2'; font-weight:700; font-size:18px;
  display:flex; align-items:center; justify-content:center;
}

/* ---- generic card block ---- */
.card-block{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
  margin-bottom:10px;
}
.block-head{
  display:flex; align-items:center; justify-content:space-between;
  font-family:'Baloo 2'; font-weight:700; font-size:15px;
  margin-bottom:10px;
}
.block-count{ font-size:12px; color:var(--purple-dark); font-weight:800; background:var(--purple-light); padding:2px 9px; border-radius:20px; }

/* ---- setup box ---- */
.field{ margin-bottom:12px; }
.field label{ display:block; font-size:12px; font-weight:700; margin-bottom:5px; color:var(--muted); }
.field input{
  width:100%; padding:11px 13px; min-height:44px; line-height:20px; box-sizing:border-box;
  border:1.5px solid #E7E1F5; border-radius:12px; -webkit-appearance:none; appearance:none;
  font-family:'Manrope'; font-size:15px; background:var(--cream); color:var(--ink);
}
button.primary{
  width:100%; padding:13px;
  background:var(--purple); color:var(--white);
  border:none; border-radius:12px;
  font-family:'Baloo 2'; font-weight:700; font-size:15px; cursor:pointer;
}
button.primary:active{ transform:translateY(1px); }
button.ghost{
  background:none; border:none; width:100%;
  font-family:'Manrope'; font-weight:700; font-size:13px;
  color:var(--muted); text-decoration:underline; padding:8px 0; cursor:pointer;
}

/* ---- section list cards (Ещё) ---- */
.section-list{ display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.tile-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
.tile{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:14px 10px; display:flex; flex-direction:column; align-items:center;
  justify-content:center; text-align:center; gap:8px; cursor:pointer; aspect-ratio:1;
}
.tile:active{ transform:translateY(1px); }
.tile .emoji{ font-size:26px; width:46px; height:46px; border-radius:50%; background:var(--purple-light); display:flex; align-items:center; justify-content:center; }
.tile:nth-child(3n+1){ background:var(--purple-light); }
.tile:nth-child(3n+1) .emoji{ background:var(--white); }
.tile:nth-child(3n+2){ background:var(--mint-light); }
.tile:nth-child(3n+2) .emoji{ background:var(--white); }
.tile:nth-child(3n+3){ background:var(--sun-light); }
.tile:nth-child(3n+3) .emoji{ background:var(--white); }
.tile h3{ font-size:13.5px; }
.tile p{ margin:0; font-size:10.5px; color:var(--muted); line-height:1.3; }
.card{
  background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow);
  padding:14px; display:flex; align-items:center; gap:12px; cursor:pointer;
}
.card:active{ transform:translateY(1px); }
.card .emoji{ font-size:24px; width:40px; height:40px; border-radius:50%; background:var(--purple-light); display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.card .txt h3{ font-size:15.5px; }
.card .txt p{ margin:2px 0 0; font-size:12.5px; color:var(--muted); }
.card .arrow{ margin-left:auto; color:var(--muted); font-size:18px; }
/* Карточка-ссылка (техподдержка): <a> вместо <div> */
.support-card{ text-decoration:none; color:var(--ink); display:flex; }
.support-card .txt{ flex:1; min-width:0; }
.support-card .txt h3{ color:var(--ink); }
.support-card:hover{ box-shadow:0 6px 18px rgba(60,110,150,.18); }

/* ---- subpage header ---- */
.subhead{ 
  display:flex; 
  align-items:center; 
  gap:10px; 
  margin-bottom:18px;
}
.back{
  border:none; background:var(--white); box-shadow:var(--shadow);
  border-radius:12px; width:38px; height:38px; font-size:18px;
  display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0;
}
.subhead h2{ font-size:21px; margin:0; }
/* Extra top clearance for Дамп мозга: this screen is often opened while a
   Telegram system pill (active call / "return to call") is shown, which
   sits above the normal safe-area and isn't reported by the Mini App API. */
#view-brain .page-head{ margin-top: 6px; }

.note{
  background:var(--purple-light); border-radius:var(--radius);
  padding:12px 14px; font-size:13px; color:var(--purple-dark);
  margin-top:16px; line-height:1.5;
}
.note b{ color:var(--ink); }
