html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: linear-gradient(22deg, var(--bg-gradient-start), var(--bg-gradient-end));
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 20px 16px 90px;
  box-sizing: border-box;
}

.panel-top {
  background: var(--panel);
  color: var(--white);
  padding: 36px 20px;
  border-radius: 36px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.panel-top{
  background:var(--panel);
  color:white;
  padding: 36px 20px;
  border-radius: 36px;
  box-shadow:var(--shadow);
  margin-bottom:14px;
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  padding-left: 20px;
}


.controls { 
  display: flex; 
  flex-direction: column; 
  gap: 5px; 
}

.back-btn-container {
  display: flex;
  margin: 0 6px 10px;
  gap: 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  padding: 5px 8px;
  border-radius: var(--pill-radius);
}

.search input {
  border: 0;
  background: transparent;
  color: rgb(0, 0, 0);
  outline: none;
  width: 80%;
  font-size: 15px;
}

.period {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: rgb(117 117 117);
  padding: 5px 8px;
  border-radius: var(--pill-radius);
  border: 0;
  cursor: pointer;
  margin-top: 4px;
  font-size: 14px;
}

span.period-text {
    align-content: center;
    font-size: 15px;
}


.icon {
  background-color: var(--panel);
  border-radius: 50px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  margin-top: 6px;
}

.error {
  background: #fff1f0;
  color: #b91c1c; /* red-ish */
  border: 1px solid rgba(239,68,68,0.12);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.auth-page, .center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

@media(max-width:520px){
  .page-header h3 { font-size: 14px; }
}



* {
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.2,.9,.2,1);
}

:focus {
  outline: none;
}
button:focus, a:focus {
  box-shadow: 0 0 0 4px rgba(37,122,230,0.08);
}

html {
  scroll-behavior: smooth;
}









.wrap-outer {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  overflow: hidden; 
}

.wrap {
  height: 100%;
  overflow-y: scroll; 
  -ms-overflow-style: none;  
  scrollbar-width: none;     
  padding: 20px 16px 90px;
  box-sizing: border-box;
}

.wrap::-webkit-scrollbar {
  display: none; 
  
}