.auth-pending #libraryBtn,
.auth-pending #resetBtn,
.auth-pending #installBtn,
.auth-pending #userBtn,
.auth-pending #noticeBtn {
  display: none !important;
}

.auth-view {
  padding: 32px 0 40px;
  text-align: center;
}

.auth-view h1 {
  margin: 12px auto 14px;
  max-width: 390px;
  font: 700 40px/1.04 Georgia, serif;
  letter-spacing: -.035em;
}

.auth-view > p {
  max-width: 380px;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-visual {
  position: relative;
  width: 230px;
  height: 170px;
  margin: 4px auto 32px;
  perspective: 900px;
}

.auth-card {
  position: absolute;
  inset: 16px 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(35, 92, 65, .18);
  border-radius: 22px;
  color: var(--green);
  background: var(--card);
  box-shadow: 0 18px 35px rgba(23, 35, 29, .14);
  font: 700 18px Georgia, serif;
}

.auth-card-one { transform: rotateY(-12deg) rotateZ(-5deg) translate(-15px, 8px); }
.auth-card-two { transform: rotateY(10deg) rotateZ(6deg) translate(18px, -4px); color: var(--lime); background: var(--ink); }

.auth-spark {
  position: absolute;
  z-index: 3;
  right: 5px;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 8px 18px rgba(23, 35, 29, .2);
  font-size: 23px;
}

.google-signin {
  min-height: 44px;
  display: grid;
  place-items: center;
  transition: opacity .18s ease;
}

.google-signin.is-loading {
  pointer-events: none;
  opacity: .55;
}

.auth-status {
  min-height: 19px;
  margin: 10px auto 0 !important;
  font-size: 12px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.auth-guest { margin-top: 14px; }
.auth-note { display: block; margin-top: 12px; color: var(--muted); }

.legal-note {
  max-width: 360px !important;
  margin: 17px auto 0 !important;
  font-size: 11px;
  line-height: 1.5 !important;
}

.legal-note a,
.app-footer a,
.profile-links a {
  color: var(--green);
  font-weight: 750;
}

.user-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid var(--lime);
  border-radius: 50%;
  color: var(--lime);
  background: var(--ink);
  font-weight: 900;
}

.user-btn img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-btn img.has-photo { display: block; }
.user-btn img.has-photo + span { display: none; }

.notice-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: var(--card);
  cursor: pointer;
}

.notice-btn > span { font-size: 14px; line-height: 1; }
.notice-btn b {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 999px;
  color: white;
  background: var(--danger);
  font-size: 9px;
}

.payment-notice-banner {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  margin: -9px 0 22px;
  padding: 12px 14px;
  border: 1px solid #cbd5b9;
  border-radius: 16px;
  color: var(--ink);
  background: #f2f6e4;
  text-align: left;
  cursor: pointer;
}

.payment-notice-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-weight: 900;
}

.payment-notice-banner > span:nth-child(2) { display: grid; gap: 3px; }
.payment-notice-banner strong { font-size: 12px; }
.payment-notice-banner small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.payment-notice-banner > b { color: var(--green); font-size: 22px; }

.profile-panel {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 18, 14, .58);
  backdrop-filter: blur(7px);
}

.notices-panel {
  position: fixed;
  z-index: 62;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 18, 14, .58);
  backdrop-filter: blur(7px);
}

.notices-sheet {
  position: relative;
  width: min(100%, 430px);
  max-height: min(720px, calc(100vh - 44px));
  overflow-y: auto;
  padding: 34px 24px 24px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 25px 70px rgba(8, 18, 12, .3);
}

.notices-sheet h2 { margin: 8px 0 5px; font: 700 30px Georgia, serif; }
.notices-sheet > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.notices-list { display: grid; gap: 10px; }
.notice-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #faf8f2;
}
.notice-item.unread { border-color: #bcc995; background: #f2f6e4; }
.notice-item-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #b7beb8; }
.notice-item.unread .notice-item-dot { background: var(--green); }
.notice-item-copy { display: grid; gap: 4px; }
.notice-item strong { font-size: 13px; }
.notice-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.notice-item time { color: var(--muted); font-size: 9px; }
.notices-empty { padding: 30px 14px; text-align: center; color: var(--muted); font-size: 12px; }

@media (max-width: 430px) {
  .topbar > div:nth-child(2) { display: none; }
  .brand-mark { margin-right: auto; }
}

.profile-sheet {
  position: relative;
  width: min(100%, 380px);
  padding: 34px 24px 24px;
  text-align: center;
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 25px 70px rgba(8, 18, 12, .3);
}

.profile-sheet h2 { margin: 12px 0 4px; font: 700 28px Georgia, serif; }
.profile-sheet p { margin: 0 0 18px; color: var(--muted); }

.profile-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 16px;
  font-size: 11px;
}

.danger-account {
  margin-top: 12px;
  padding: 9px;
  border: 0;
  color: var(--danger);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
}

.profile-plan {
  display: grid;
  gap: 5px;
  margin: 0 0 20px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #edf0df;
}

.profile-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-plan .profile-plan-head span { padding: 4px 7px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.profile-plan strong { color: var(--green); font-size: 13px; }
.profile-plan span { color: var(--ink); font-size: 12px; }
.profile-plan small { color: var(--muted); font-size: 11px; }

.quota-meter { display: block; width: 100%; height: 7px; overflow: hidden; border-radius: 999px; background: #d9ddd0; }
.quota-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .35s ease; }
.plan-link { border: 0; padding: 7px 0 0; text-align: left; color: var(--green); background: transparent; font: inherit; font-size: 11px; font-weight: 800; line-height: 1.2; cursor: pointer; }

.quota-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
  margin: -8px 0 22px;
  padding: 14px;
  border: 1px solid #ced5bb;
  border-radius: 16px;
  color: var(--ink);
  background: #edf0df;
  text-align: left;
  cursor: pointer;
}
.quota-summary-copy { display: grid; gap: 3px; }
.quota-summary-copy small { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.quota-summary-copy strong { font-size: 13px; }
.quota-summary-action { color: var(--green); font-size: 11px; font-weight: 850; white-space: nowrap; }
.quota-summary .quota-meter { grid-column: 1/-1; }

.plans-panel {
  position: fixed;
  z-index: 60;
  inset: 0;
  overflow-y: auto;
  padding: 20px;
  background: rgba(10, 18, 14, .68);
  backdrop-filter: blur(8px);
}
.plans-sheet {
  position: relative;
  width: min(100%, 760px);
  margin: 20px auto;
  padding: 36px 24px 24px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 25px 80px rgba(8, 18, 12, .35);
}
.plans-sheet>h2 { max-width: 560px; margin: 10px 0 8px; font: 700 36px/1.05 Georgia, serif; letter-spacing: -.03em; }
.plans-sheet>p { color: var(--muted); line-height: 1.5; }
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.plan-card { display: flex; flex-direction: column; min-height: 430px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.plan-card.current-plan { border-color: var(--green); box-shadow: 0 0 0 2px #235c411c; }
.plan-card-pro { color: white; border-color: var(--ink); background: var(--ink); }
.plan-card-head { min-height: 24px; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.plan-card-pro .plan-card-head { color: var(--lime); }
.current-plan-badge { padding: 5px 8px; border-radius: 999px; color: var(--ink); background: var(--lime); font-size: 8px; letter-spacing: .08em; }
.plan-card>strong { margin-top: 16px; font: 700 29px Georgia, serif; }
.plan-card>small { min-height: 30px; margin-top: 3px; color: var(--muted); }
.plan-card-pro>small { color: #bdc5bf; }
.plan-card h3 { margin: 16px 0 10px; font-size: 18px; }
.plan-card ul { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.plan-card li { position: relative; padding-left: 21px; font-size: 12px; line-height: 1.4; }
.plan-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.plan-card-pro li::before { color: var(--lime); }
.plan-card .primary,.plan-card .secondary { margin-top: auto; }
.plan-payment-actions { display: grid; gap: 9px; margin-top: auto; }
.plan-payment-actions .primary,.plan-payment-actions .secondary { margin-top: 0; }
.plan-payment-actions>small { color: #bdc5bf; font-size: 10px; line-height: 1.35; text-align: center; }
.pix-payment-status { margin: 0; padding: 10px 12px; border: 1px solid #ffffff2e; border-radius: 10px; background: #ffffff12; color: #edf2ee; font-size: 11px; line-height: 1.4; text-align: left; }
.pix-payment-status.is-error { border-color: #ffb9ad66; background: #6d2d2d55; color: #fff0ed; }
.plan-card-pro .primary { color: var(--ink); background: var(--lime); }
.plan-card-pro .secondary.pix-payment { color: #fff !important; -webkit-text-fill-color: #fff; border-color: #ffffff70; background: transparent; }
.plan-card-pro .pix-payment:hover { border-color: var(--lime); }
.plan-card-pro .primary.cancel-subscription { color: white; border: 1px solid #ffffff55; background: transparent; box-shadow: none; }
.pro-renewal { margin: 0 0 14px; color: #d7ded9; font-size: 11px; line-height: 1.4; }
.plans-status { margin: 16px 0 0!important; text-align: center; font-size: 12px; }

.profile-avatar {
  width: 70px;
  height: 70px;
  margin: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--lime);
  background: var(--ink);
  font: 800 32px Georgia, serif;
}

.app-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 34px;
  padding: 20px 0 2px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-align: center;
}

.app-footer small {
  width: 100%;
  color: var(--muted);
  line-height: 1.5;
}

.delete-account-panel {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(10, 18, 14, .7);
  backdrop-filter: blur(8px);
}

.delete-account-sheet {
  position: relative;
  width: min(100%, 430px);
  padding: 32px 24px 24px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 25px 75px rgba(8, 18, 12, .36);
}

.delete-account-sheet h2 {
  margin: 10px 0 10px;
  font: 700 30px/1.08 Georgia, serif;
}

.delete-account-sheet > p {
  color: var(--muted);
  line-height: 1.55;
}

.delete-confirm-field {
  display: block;
  margin-top: 20px;
}

.delete-confirm-field span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}

.danger-confirm {
  width: 100%;
  margin-top: 16px;
  padding: 15px;
  border: 0;
  border-radius: 15px;
  color: white;
  background: var(--danger);
  font: inherit;
  font-weight: 850;
}

.danger-confirm:disabled { opacity: .45; }

.panel-status {
  min-height: 18px;
  margin: 12px 0 0 !important;
  color: var(--danger) !important;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 370px) {
  .auth-view h1 { font-size: 34px; }
  .auth-visual { transform: scale(.9); margin-bottom: 20px; }
}

@media (max-width: 620px) {
  .plans-panel { padding: 10px; }
  .plans-sheet { margin: 8px auto; padding: 34px 16px 18px; border-radius: 22px; }
  .plans-sheet>h2 { font-size: 31px; }
  .plan-cards { grid-template-columns: 1fr; }
  .plan-card { min-height: 0; }
  .delete-account-panel { align-items: end; padding: 10px; }
  .delete-account-sheet { padding: 28px 18px 18px; border-radius: 23px; }
}
