:root {
  --ink: #24182e;
  --muted: #766b7d;
  --line: #eee4ea;
  --paper: #fff8f8;
  --card: #ffffff;
  --rose: #d96f82;
  --rose-soft: #fff0f2;
  --purple: #5a32a6;
  --purple-soft: #f0e9ff;
  --plum: #311d46;
  --sage: #789b88;
  --green: #6fa28c;
  --gold: #d2a04a;
  --shadow: 0 18px 45px rgba(70, 43, 76, .08);
  --soft-shadow: 0 10px 26px rgba(70, 43, 76, .06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255,248,248,.94) 0%, rgba(251,247,255,.96) 100%),
    linear-gradient(115deg, #fff 0%, #fff5f7 44%, #f8f3ff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  padding: 13px 18px;
  font-weight: 700;
}
.button-link.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--purple);
  padding: 9px 12px;
  box-shadow: none;
}
button, input, select, textarea {
  font: inherit;
}
button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #6b3ec2, #4b248f);
  color: #fff;
  cursor: pointer;
  padding: 13px 18px;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(90, 50, 166, .18);
}
button.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--purple);
  padding: 9px 12px;
  box-shadow: none;
}
button.danger {
  color: #b53747;
  border-color: #f1ccd2;
  background: var(--rose-soft);
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: #c9b3ee;
  box-shadow: 0 0 0 4px rgba(90, 50, 166, .08);
}
textarea { resize: vertical; }
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .88rem;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  overflow: hidden;
  width: min(980px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.auth-visual {
  min-height: 560px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.8)),
    url("../img/serena-hero.jpg") center/cover no-repeat;
}
.auth-content {
  align-self: center;
  padding: 42px;
}
.auth-card h1 { margin: 8px 0; font-size: 2rem; }
.auth-card p { color: var(--muted); line-height: 1.5; }
.auth-card form { display: grid; gap: 15px; margin: 24px 0 18px; }
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-links a,
.auth-content > a {
  color: var(--purple);
  font-weight: 800;
}
.auth-art {
  letter-spacing: .24em;
  color: var(--purple);
  font-weight: 800;
}
.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 20px;
  background: rgba(255,255,255,.82);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand span, .avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: var(--rose);
  letter-spacing: 0;
}
.sidebar nav { display: grid; gap: 8px; }
.sidebar nav a, .logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid transparent;
}
.sidebar nav a.active, .sidebar nav a:hover {
  color: var(--purple);
  background: var(--purple-soft);
  border-color: #e2d7f6;
  font-weight: 700;
}
.nav-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8dfe7;
  flex: 0 0 auto;
}
.nav-home .nav-mark { background: var(--rose); }
.nav-agenda .nav-mark { background: var(--gold); }
.nav-rotina .nav-mark { background: var(--green); }
.nav-trabalho .nav-mark { background: #8b73d7; }
.nav-estudos .nav-mark { background: #d66f7d; }
.nav-financeiro .nav-mark { background: #6e9d78; }
.nav-espiritual .nav-mark { background: var(--purple); }
.nav-diario .nav-mark { background: #b792d7; }
.nav-perfil .nav-mark { background: #9a8b9f; }
.logout { margin-top: 28px; color: var(--rose); }
.content {
  width: min(1180px, 100%);
  padding: 32px;
}
.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.app-topbar > div:first-child {
  display: grid;
  gap: 3px;
}
.topbar-kicker {
  color: var(--muted);
  font-size: .82rem;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  color: var(--plum);
  font-weight: 800;
  box-shadow: var(--soft-shadow);
}
.user-chip span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: .86rem;
}
.hero, .page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}
.page-head {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255,255,255,.96) 0%, rgba(255,247,249,.94) 58%, rgba(240,233,255,.85) 100%);
  box-shadow: var(--soft-shadow);
}
.page-head::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -28px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217,111,130,.18), rgba(90,50,166,.12));
  pointer-events: none;
}
.page-head > * {
  position: relative;
  z-index: 1;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 246px;
  padding: 34px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 34%, rgba(255,255,255,.2) 68%),
    url("../img/serena-hero.jpg") center right/cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero h1, .page-head h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}
.hero h1 {
  max-width: 520px;
}
.hero-copy {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.eyebrow {
  margin: 0;
  color: var(--rose);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .12em;
}
.avatar {
  width: 88px;
  height: 88px;
  font-size: 2rem;
  background: var(--purple);
}
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}
.profile-card {
  text-align: center;
}
.profile-card h2 {
  margin: 12px 0 4px;
}
.profile-card p {
  color: var(--muted);
  margin: 0;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 2.4rem;
  font-weight: 900;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.alert-panel {
  border-color: #f0c4cb;
  background: #fff7f8;
}
.compact-cards {
  grid-template-columns: repeat(3, 1fr);
}
.danger-tag {
  color: #b53747;
  background: var(--rose-soft);
}
.mini-list {
  display: grid;
  gap: 10px;
}
.mini-list a {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.mini-list a:hover {
  border-color: #dbcff5;
  background: #fcfaff;
}
.mini-list span {
  color: var(--muted);
  font-size: .9rem;
}
.stats article, .panel, .module-grid a, .item-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}
.stats article {
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.stats article::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rose-soft);
}
.stats strong {
  display: block;
  font-size: 2rem;
  color: var(--purple);
}
.stats span, .row span, .work-row span, .goal-row span, .item-card p, .item-card small {
  color: var(--muted);
}
.panel {
  padding: 22px;
  margin-bottom: 18px;
}
.panel h2 {
  margin: 0 0 16px;
  font-size: 1.08rem;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head a { color: var(--rose); font-weight: 700; }
.list { display: grid; gap: 12px; }
.row, .work-row, .goal-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #f0e7ed;
  border-radius: 8px;
  background: #fff;
}
.row:hover, .work-row:hover, .goal-row:hover, .item-card:hover, .mini-list a:hover {
  transform: translateY(-1px);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.inline-actions {
  justify-self: end;
}
.row time {
  color: var(--rose);
  font-weight: 800;
}
.row time small { display: block; color: var(--muted); margin-top: 3px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.module-grid a {
  position: relative;
  overflow: hidden;
  padding: 24px;
  font-size: 1.15rem;
  font-weight: 800;
}
.module-grid a::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rose-soft), var(--purple-soft));
}
.module-grid a:nth-child(1)::before { background: linear-gradient(135deg, #eaf7f0, #d7efe4); }
.module-grid a:nth-child(2)::before { background: linear-gradient(135deg, #edf7ef, #fff2cf); }
.module-grid a:nth-child(3)::before { background: linear-gradient(135deg, #efe8ff, #ded2ff); }
.module-grid a:nth-child(4)::before { background: linear-gradient(135deg, #fff0f2, #ffe0e6); }
.module-grid a:nth-child(5)::before { background: linear-gradient(135deg, #efe8ff, #fff0f2); }
.module-grid a:nth-child(6)::before { background: linear-gradient(135deg, #f7efff, #efe8ff); }
.module-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
}
.form-panel { display: none; }
.form-panel.open { display: block; }
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.grid-form .wide, .grid-form button { grid-column: 1 / -1; }
.filter-panel {
  padding: 16px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
}
.filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(130px, 180px)) auto;
  gap: 12px;
  align-items: end;
}
.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-actions button,
.filter-actions .button-link {
  min-height: 46px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.item-card { padding: 18px; }
.item-card h3 {
  margin: 12px 0 8px;
}
.item-card.is-done {
  opacity: .72;
}
.item-card.is-done h3 {
  text-decoration: line-through;
}
.wide-card { grid-column: span 2; }
.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--purple);
  background: var(--purple-soft);
  font-size: .78rem;
  font-weight: 800;
}
.tag::first-letter {
  text-transform: uppercase;
}
.work-row {
  grid-template-columns: 1fr 180px 140px;
}
.goal-row {
  grid-template-columns: 1fr 76px;
}
.row-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.card-actions.stack {
  display: grid;
}
.mini-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-form input,
.mini-form select {
  width: auto;
  min-width: 118px;
  padding: 9px 10px;
}
.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eeeaf2;
}
.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), #a779dc);
}
.empty {
  margin: 0;
  color: var(--muted);
  padding: 18px;
  border: 1px dashed #e4d7e2;
  border-radius: 8px;
  background: rgba(255,248,250,.74);
  text-align: center;
}
.flash {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #edf8f2;
  color: #226141;
  border: 1px solid #cfeedd;
}
.flash.error {
  background: var(--rose-soft);
  color: #9f3141;
  border-color: #f3c8ce;
}
.dot-purple time { color: var(--purple); }
.dot-green time { color: var(--green); }
.dot-gold time { color: var(--gold); }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    z-index: 10;
    inset: auto 0 0 0;
    height: auto;
    padding: 8px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }
  .brand, .logout { display: none; }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .sidebar nav::-webkit-scrollbar {
    display: none;
  }
  .sidebar nav a {
    min-width: 78px;
    flex: 0 0 auto;
    padding: 9px 6px;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    font-size: .78rem;
  }
  .nav-mark {
    width: 8px;
    height: 8px;
  }
  .profile-grid {
    gap: 4px;
    grid-template-columns: 1fr;
  }
  .content { padding: 22px 16px 96px; }
  .app-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-actions {
    width: 100%;
  }
  .topbar-actions .button-link,
  .user-chip {
    flex: 1 1 auto;
  }
  .auth-card {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    min-height: 210px;
  }
  .auth-content {
    padding: 28px;
  }
  .hero, .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-head {
    min-height: 124px;
    padding: 22px;
  }
  .hero {
    min-height: 230px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.86) 58%, rgba(255,255,255,.25) 100%),
      url("../img/serena-hero.jpg") center right/cover no-repeat;
  }
  .stats, .module-grid, .cards, .grid-form, .filter-form, .dashboard-grid, .compact-cards { grid-template-columns: 1fr; }
  .wide-card, .grid-form .wide, .grid-form button { grid-column: auto; }
  .work-row, .goal-row, .row { grid-template-columns: 1fr; }
  .inline-actions, .row-actions {
    justify-self: stretch;
    justify-content: flex-start;
  }
  .mini-form input, .mini-form select {
    width: 100%;
  }
  .filter-actions {
    align-items: stretch;
  }
}

/* Exact mockup shell pass based on telas/_contato_telas.jpg. */
html {
  background: #ffffff;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  background: #ffffff;
}

.shell,
.auth-shell {
  position: relative;
  display: block;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 238, 241, .78), transparent 36%),
    linear-gradient(180deg, #fffafa 0%, #fff8f9 100%);
}

.ios-status {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 10px 22px 4px;
  color: #121014;
  background: rgba(255, 250, 250, .92);
  font-size: .88rem;
}

.ios-status strong {
  font-weight: 900;
}

.status-icons {
  display: inline-flex;
  align-items: end;
  gap: 5px;
}

.status-icons i {
  display: block;
  width: 18px;
  height: 12px;
  border: 2px solid #121014;
  border-radius: 4px;
}

.status-icons i:first-child {
  width: 20px;
  height: 13px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #121014 0 18%, transparent 18% 28%, #121014 28% 48%, transparent 48% 58%, #121014 58% 78%, transparent 78%);
}

.status-icons i:nth-child(2) {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 100%, transparent 0 34%, #121014 36% 42%, transparent 44% 54%, #121014 56% 62%, transparent 64%);
}

.content {
  max-width: none;
  padding: 22px 22px 118px;
}

.auth-card {
  min-height: calc(100vh - 38px);
  padding: 0 24px 28px;
}

.auth-content {
  padding: 0;
}

.auth-visual {
  min-height: 360px;
  margin: 4px -10px 0;
}

.auth-art {
  font-size: 3.25rem;
  line-height: 1;
  margin: 8px 0 16px;
}

.auth-card h1 {
  font-size: 2.15rem;
}

.auth-links {
  justify-content: center;
  margin-top: 12px;
}

.app-topbar {
  display: none;
}

.sidebar {
  position: absolute;
  inset: auto 20px 22px;
  z-index: 70;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.brand,
.logout {
  display: none;
}

.sidebar nav {
  display: flex;
  justify-content: space-around;
  gap: 0;
  height: 78px;
  padding: 10px 12px 8px;
  overflow: hidden;
  border: 1px solid #f1e3eb;
  border-radius: 8px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 28px rgba(73, 39, 68, .06);
}

.sidebar nav a {
  display: none;
}

.sidebar nav .nav-home,
.sidebar nav .nav-menu,
.sidebar nav .nav-perfil {
  display: flex;
  min-width: 74px;
  padding: 6px 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #4f4753;
  border: 0;
  background: transparent;
  font-size: .8rem;
  font-weight: 600;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  color: #de7583;
  border: 0;
  background: transparent;
}

.nav-mark {
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 8px;
  background: transparent;
}

.nav-home .nav-mark {
  position: relative;
  border-radius: 4px 4px 8px 8px;
}

.nav-home .nav-mark::before {
  content: "";
  position: absolute;
  left: 3px;
  top: -7px;
  width: 13px;
  height: 13px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  background: #fff;
}

.nav-menu .nav-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  border: 0;
}

.nav-menu .nav-mark::before,
.nav-menu .nav-mark::after {
  content: "";
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: 12px 0 0 -2px #fff, 12px 0 0 0 currentColor;
}

.nav-perfil .nav-mark {
  position: relative;
  border: 0;
}

.nav-perfil .nav-mark::before,
.nav-perfil .nav-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid currentColor;
}

.nav-perfil .nav-mark::before {
  top: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.nav-perfil .nav-mark::after {
  bottom: 1px;
  width: 18px;
  height: 10px;
  border-radius: 12px 12px 4px 4px;
}

.hero,
.page-head {
  min-height: 184px;
  margin-bottom: 14px;
  padding: 22px 150px 12px 0;
}

.hero h1,
.page-head h1 {
  font-size: 2.55rem;
  line-height: 1.05;
}

.hero-copy,
.page-head p:not(.eyebrow) {
  font-size: 1rem;
}

.panel,
.stats,
.module-grid a,
.item-card,
.row,
.work-row,
.goal-row,
.mini-list a {
  border-radius: 8px;
}

.panel {
  padding: 18px;
}

.page-head button {
  position: absolute;
  right: 4px;
  top: 18px;
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  border-radius: 50%;
  color: transparent;
  background: linear-gradient(135deg, #6d36b8, #402096);
}

.page-head button::before {
  content: "+";
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
}

@media (min-width: 700px) {
  .shell,
  .auth-shell {
    min-height: 860px;
    margin-top: 18px;
    margin-bottom: 18px;
    border: 1px solid #f5e8ee;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(35, 18, 42, .08);
  }
}

/* Exact public screens: 00.jpeg and 00b.jpeg. */
.auth-onboarding {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 38px);
  padding: 62px 38px 26px;
  text-align: center;
}

.auth-onboarding .auth-art {
  margin: 0;
  color: #56374f;
  font-size: 3.45rem;
}

.auth-tagline {
  margin: 20px 0 16px;
  color: #4d414d;
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 600;
}

.auth-onboarding .auth-visual {
  flex: 1 1 auto;
  min-height: 285px;
  margin: 0 -18px;
  background:
    radial-gradient(circle at 50% 58%, rgba(252,229,233,.94) 0 37%, transparent 38%),
    url("../img/serena-ref-auth.jpg") center bottom/88% auto no-repeat;
}

.auth-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 18px 0 26px;
}

.auth-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8e0e3;
}

.auth-dots span:first-child {
  background: #d86f80;
}

.auth-primary,
.auth-secondary {
  width: 100%;
  min-height: 62px;
  font-size: 1.12rem;
}

.auth-secondary {
  margin-top: 16px;
  border-color: #d98c97;
  color: #302233;
  background: rgba(255,255,255,.78);
}

.auth-safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  color: #5e5360;
  text-align: left;
  font-size: .96rem;
  line-height: 1.35;
}

.auth-safe span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff0f2;
}

.auth-safe span::before {
  content: "";
  width: 21px;
  height: 25px;
  border: 2px solid #b75e70;
  border-radius: 12px 12px 8px 8px;
}

.auth-login-form {
  display: none;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #f1e3eb;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  text-align: left;
}

.auth-login-form:target {
  display: grid;
}

.auth-login-form a {
  justify-self: center;
  color: #d36d7c;
  font-weight: 800;
}

.auth-register {
  min-height: calc(100vh - 38px);
  padding: 44px 34px 34px;
  text-align: center;
  background:
    url("../img/serena-ref-espiritual.jpg") right bottom/122px auto no-repeat;
}

.auth-back {
  position: absolute;
  left: 26px;
  top: 50px;
  width: 26px;
  height: 26px;
}

.auth-back::before {
  content: "";
  position: absolute;
  inset: 4px 7px;
  border-left: 3px solid #2d2131;
  border-bottom: 3px solid #2d2131;
  transform: rotate(45deg);
}

.auth-register .auth-art {
  margin: 0 0 38px;
  color: #56374f;
  font-size: 3.05rem;
}

.auth-register h1 {
  color: #3b263d;
  font-size: 2.15rem;
}

.auth-register h1::after {
  width: 58px;
  height: 5px;
  margin-top: 18px;
}

.auth-register p {
  margin: 20px auto 30px;
  color: #706673;
  font-size: 1.08rem;
  line-height: 1.45;
}

.auth-register form {
  gap: 17px;
}

.auth-register label {
  font-size: 0;
}

.auth-register input {
  min-height: 64px;
  padding-left: 68px;
  border-radius: 8px;
  font-size: 1rem;
}

.auth-register label {
  position: relative;
}

.auth-register label::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 21px;
  z-index: 1;
  width: 20px;
  height: 20px;
  border: 2px solid #3a263a;
  border-radius: 50%;
}

.auth-register label:nth-of-type(2)::before {
  border-radius: 3px;
}

.auth-register label:nth-of-type(3)::before,
.auth-register label:nth-of-type(4)::before {
  top: 24px;
  height: 15px;
  border-radius: 3px;
}

.auth-register button[type="submit"] {
  min-height: 64px;
  margin-top: 12px;
}

.auth-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 22px 0;
  color: #5d5360;
  font-weight: 800;
}

.auth-separator span {
  height: 1px;
  background: #eadfe5;
}

.google-button {
  width: 100%;
  min-height: 58px;
  border: 1px solid #f0dfe7;
  background: #fff;
  color: #332638;
  box-shadow: none;
}

.auth-bottom-link {
  margin-top: 26px;
}

.auth-bottom-link a {
  color: #d36d7c;
  font-weight: 900;
}

/* Exact logged screens: 01-11. */
.app-hero {
  position: relative;
  min-height: 218px;
  margin: -2px 0 8px;
  padding: 26px 0 0;
}

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

.app-top-icons strong,
.mock-logo {
  color: #56374f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: .22em;
}

.hamburger,
.bell {
  position: relative;
  width: 30px;
  height: 30px;
}

.hamburger::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 24px;
  height: 2px;
  background: #251331;
  box-shadow: 0 8px 0 #251331, 0 16px 0 #251331;
}

.bell::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 16px;
  height: 18px;
  border: 2px solid #251331;
  border-radius: 12px 12px 8px 8px;
}

.bell::after {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #de7583;
}

.app-hero-home {
  background:
    radial-gradient(circle at 83% 45%, rgba(255, 232, 236, .92) 0 26%, transparent 27%),
    url("../img/serena-ref-home.jpg") right 58px/190px auto no-repeat;
}

.home-greeting {
  max-width: 235px;
}

.home-greeting h1,
.app-hero-menu h1 {
  margin: 0;
  color: #2d2131;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.95rem;
  line-height: 1.1;
  font-weight: 900;
}

.home-greeting h1 span,
.app-hero-menu h1 span {
  color: #de7583;
}

.home-greeting p,
.app-hero-menu p {
  margin: 12px 0 0;
  color: #5e5560;
  font-size: 1.02rem;
  line-height: 1.45;
}

.mock-section {
  margin-bottom: 24px;
}

.mock-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mock-section h2,
.mock-section-head h2 {
  margin: 0;
  color: #1f1726;
  font-size: 1.35rem;
}

.mock-section-head a {
  color: #d36d7c;
  font-weight: 800;
}

.today-card {
  overflow: hidden;
  border: 1px solid #f1e4eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(73, 39, 68, .055);
}

.today-row {
  display: grid;
  grid-template-columns: 68px 12px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 15px 18px;
  border-bottom: 1px solid #f4eaf0;
}

.today-row:last-child {
  border-bottom: 0;
}

.today-row time {
  color: #de7583;
  font-size: 1.02rem;
  font-weight: 900;
}

.today-row > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #efc3ca;
}

.today-row strong {
  display: block;
  color: #251331;
  font-size: .98rem;
}

.today-row small {
  display: inline-flex;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3edff;
  color: #4f3a5b;
  font-weight: 800;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}

.week-strip span {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #574e59;
}

.week-strip small {
  font-size: .72rem;
  font-weight: 800;
}

.week-strip b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: .92rem;
}

.week-strip .active b {
  background: #de7583;
  color: #fff;
}

.week-strip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ecdde3;
}

.home-module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.home-module-grid a,
.menu-list a {
  display: grid;
  grid-template-columns: 54px 1fr 16px;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(73, 39, 68, .04);
}

.home-module-grid a::after,
.menu-list a::after {
  content: "›";
  color: #de7583;
  font-size: 1.8rem;
  line-height: 1;
}

.home-module-grid a > span,
.menu-list a > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #fff0f2;
  color: #d36d7c;
  font-weight: 900;
}

.home-module-grid a:nth-child(2) > span,
.menu-list a:nth-child(3) > span {
  background: #f0f5df;
  color: #84934f;
}

.home-module-grid a:nth-child(3) > span,
.menu-list a:nth-child(4) > span {
  background: #f3edff;
  color: #7b5ab5;
}

.home-module-grid a:nth-child(4) > span,
.menu-list a:nth-child(5) > span {
  background: #fff2e5;
  color: #c59038;
}

.home-module-grid strong,
.menu-list strong {
  display: block;
  color: #201629;
  font-size: 1.05rem;
}

.home-module-grid small,
.menu-list small {
  display: block;
  margin-top: 3px;
  color: #706774;
  font-size: .82rem;
}

.app-hero-menu {
  min-height: 260px;
  padding-top: 48px;
  background:
    radial-gradient(circle at 84% 43%, rgba(255, 232, 236, .95) 0 27%, transparent 28%),
    url("../img/serena-ref-home.jpg") right 48px/185px auto no-repeat;
}

.app-hero-menu .mock-logo {
  display: block;
  margin-bottom: 28px;
}

.menu-screen > p {
  margin: 6px 0 16px;
  color: #706774;
}

.menu-list {
  display: grid;
  gap: 8px;
}

.mock-page-nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 62px;
  margin-bottom: 12px;
}

.mock-page-nav h1 {
  margin: 0;
  text-align: center;
  color: #171025;
  font-size: 1.28rem;
}

.mock-page-nav > a,
.mock-page-nav > button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  color: #24172a;
  box-shadow: 0 8px 20px rgba(73, 39, 68, .06);
}

.mock-page-nav > a::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

.mock-page-nav > button {
  color: #fff;
  background: linear-gradient(135deg, #6d36b8, #402096);
  font-size: 1.4rem;
}

.calendar-card {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(73, 39, 68, .055);
}

.calendar-title,
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-title {
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  margin-bottom: 18px;
}

.calendar-title strong {
  font-size: 1.08rem;
}

.calendar-title span::before {
  content: "‹";
  color: #251331;
  font-size: 1.7rem;
}

.calendar-title span:last-child::before {
  content: "›";
}

.calendar-weekdays {
  margin-bottom: 12px;
  color: #7a717d;
  font-size: .78rem;
  font-weight: 800;
}

.calendar-grid {
  gap: 7px 4px;
}

.calendar-grid span {
  display: grid;
  place-items: center;
  min-height: 34px;
  gap: 3px;
}

.calendar-grid b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: .9rem;
}

.calendar-grid .active b {
  background: #de7583;
  color: #fff;
}

.calendar-grid i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #de7583;
}

.agenda-list-section h2 {
  margin-bottom: 14px;
}

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

.agenda-event {
  display: grid;
  grid-template-columns: 116px 1fr 28px;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 15px;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
}

.agenda-event time {
  color: #de7583;
}

.agenda-event time strong {
  display: block;
  font-size: .86rem;
}

.agenda-event time span,
.agenda-event small {
  color: #756c78;
}

.agenda-event > a {
  color: #251331;
  font-weight: 900;
}

.routine-nav h1 {
  font-size: 1.45rem;
}

.routine-intro {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 6px 0 28px;
  text-align: center;
}

.routine-intro p {
  margin: 0;
  color: #7b717e;
}

.routine-intro span {
  color: #de7583;
  font-size: 1.8rem;
}

.routine-intro h2 {
  margin: 0;
  color: #1f1726;
  font-size: 1.05rem;
}

.routine-intro strong {
  margin-top: 8px;
}

.routine-progress {
  width: min(250px, 78%);
  height: 10px;
  border-radius: 999px;
  background: #fdebed;
}

.routine-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #de7583;
}

.routine-groups {
  display: grid;
  gap: 12px;
}

.routine-group {
  overflow: hidden;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(73, 39, 68, .04);
}

.routine-group-head {
  display: grid;
  grid-template-columns: 54px 1fr 24px;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.routine-group-head > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff0f2;
  color: #d36d7c;
  font-weight: 900;
}

.routine-group-head strong {
  display: block;
  color: #251331;
}

.routine-group-head small {
  color: #7b727e;
}

.routine-task-list {
  padding: 0 16px 12px 84px;
}

.routine-task {
  display: grid;
  grid-template-columns: 28px 1fr 22px;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-top: 1px solid #f3e9ef;
}

.routine-task form button {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border: 2px solid #afa7b1;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.routine-task.is-done form button {
  border-color: #77b96f;
  background: #77b96f;
}

.routine-task.is-done a {
  color: #8b828d;
  text-decoration: line-through;
}

.routine-task small {
  color: #7b727e;
  font-weight: 900;
}

.routine-add {
  min-height: 78px;
  border: 1px dashed #ecd6de;
  background: rgba(255,255,255,.55);
  color: #de7583;
  box-shadow: none;
}

/* Exact module block: 12-29. */
.mock-illustrated-head {
  position: relative;
  min-height: 194px;
  margin: -2px 0 16px;
  padding: 22px 145px 0 4px;
}

.mock-illustrated-head h1 {
  margin: 18px 0 6px;
  color: #251331;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  font-weight: 500;
  line-height: 1.05;
}

.mock-illustrated-head p {
  margin: 0;
  color: #5f5562;
  line-height: 1.45;
}

.mock-illustrated-head button {
  position: absolute;
  right: 4px;
  top: 18px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #6d36b8, #402096);
  font-size: 1.5rem;
}

.mock-back {
  position: absolute;
  left: 0;
  top: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(73, 39, 68, .06);
}

.mock-back::before {
  content: "";
  width: 12px;
  height: 12px;
  border-left: 3px solid #251331;
  border-bottom: 3px solid #251331;
  transform: rotate(45deg);
}

.work-head {
  padding-top: 34px;
  background:
    radial-gradient(circle at 82% 45%, rgba(243,237,255,.9) 0 27%, transparent 28%),
    url("../img/serena-ref-trabalho.jpg") right 18px/225px auto no-repeat;
}

.finance-head {
  padding-left: 56px;
  background:
    radial-gradient(circle at 84% 45%, rgba(243,237,255,.84) 0 26%, transparent 27%),
    url("../img/serena-ref-financeiro.jpg") right 20px/176px auto no-repeat;
}

.books-head {
  padding-left: 56px;
  background:
    radial-gradient(circle at 84% 45%, rgba(243,237,255,.78) 0 26%, transparent 27%),
    url("../img/serena-ref-estudos.jpg") right 24px/186px auto no-repeat;
}

.devotional-head {
  padding-left: 56px;
  background:
    radial-gradient(circle at 84% 45%, rgba(243,237,255,.78) 0 26%, transparent 27%),
    url("../img/serena-ref-espiritual.jpg") right 20px/142px auto no-repeat;
}

.diary-head {
  padding-left: 56px;
  background:
    radial-gradient(circle at 82% 45%, rgba(243,237,255,.78) 0 27%, transparent 28%),
    url("../img/serena-ref-diario.jpg") right 18px/190px auto no-repeat;
}

.work-stats,
.book-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(73, 39, 68, .05);
}

.work-stats article,
.book-stats article {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  border-right: 1px solid #f3e9ef;
}

.work-stats article:last-child,
.book-stats article:last-child {
  border-right: 0;
}

.work-stats span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f3edff;
  color: #7b5ab5;
  font-weight: 900;
}

.work-stats small,
.book-stats small {
  color: #6f6673;
  font-size: .72rem;
}

.work-stats strong,
.book-stats strong {
  color: #22172b;
  font-size: 1.05rem;
}

.segmented-tabs,
.finance-tabs,
.devotional-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.segmented-tabs a,
.finance-tabs a,
.devotional-tabs a {
  flex: 1 0 auto;
  min-height: 46px;
  padding: 13px 15px;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
  color: #625867;
  text-align: center;
  font-weight: 800;
}

.segmented-tabs a.active,
.finance-tabs a.active,
.devotional-tabs a.active {
  background: #f3edff;
  color: #4b2497;
  border-color: #eadcff;
}

.wide-cta {
  width: 100%;
  min-height: 56px;
  margin: 12px 0 18px;
  background: linear-gradient(135deg, #b696dc, #7d55c0);
}

.finance-cta {
  background: linear-gradient(135deg, #5931b0, #3d1f94);
}

.work-list,
.finance-list,
.book-list,
.devotional-list,
.diary-list {
  display: grid;
  gap: 10px;
}

.work-card {
  display: grid;
  grid-template-columns: 54px 1.1fr .85fr;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
}

.work-icon,
.finance-thumb,
.book-cover {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #f3edff;
  color: #7b5ab5;
  font-weight: 900;
}

.work-main a,
.finance-card a,
.book-card a,
.devotional-card a,
.diary-card a {
  display: block;
  color: #1f1726;
  font-weight: 900;
}

.work-main small,
.work-money small,
.work-tags small,
.finance-card small,
.book-card small,
.devotional-card time,
.diary-card time,
.diary-card small {
  display: block;
  margin-top: 4px;
  color: #776e7a;
  font-size: .78rem;
}

.work-money strong {
  display: block;
  margin: 5px 0;
  color: #2c1743;
}

.work-tags {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.work-tags span,
.devotional-card b {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3edff;
  color: #6c47a5;
  font-size: .76rem;
  font-weight: 900;
}

.finance-tabs {
  border-bottom: 2px solid #eee6f4;
}

.finance-tabs a {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.finance-tabs a.active {
  border-bottom: 3px solid #4b2497;
  background: transparent;
}

.finance-card,
.book-card,
.devotional-card,
.diary-card {
  display: grid;
  grid-template-columns: 76px 1fr 72px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(73, 39, 68, .04);
}

.finance-thumb {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #f3edff, #fff0f2);
  color: #4b2497;
  font-size: 1.3rem;
}

.finance-card strong {
  display: block;
  margin: 8px 0;
  color: #23172e;
}

.finance-card aside {
  display: grid;
  gap: 5px;
  text-align: left;
}

.finance-card aside b {
  color: #4b2497;
  font-size: 1.65rem;
}

.serena-tip {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #f6efff;
  color: #4b2497;
}

.serena-tip span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
}

.serena-tip small {
  grid-column: 2;
  color: #625867;
}

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

.book-card {
  grid-template-columns: 58px 1fr auto;
}

.book-cover {
  width: 58px;
  height: 78px;
  background: linear-gradient(135deg, #efe6d5, #d8b985);
  color: #5b3b20;
}

.devotional-card {
  grid-template-columns: 1fr 24px;
  align-items: start;
}

.devotional-card span {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.devotional-card p,
.diary-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: #4d4450;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.devotional-card > small {
  color: #f1b21f;
  font-size: 1.3rem;
}

.diary-form-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
}

.diary-form-card form {
  display: grid;
  gap: 16px;
}

.diary-form-card label {
  color: #2c1743;
  font-weight: 900;
}

.diary-note {
  padding: 16px;
  border-radius: 8px;
  background: #f6efff;
  color: #4f4260;
  line-height: 1.45;
}

.diary-form-card button {
  background: linear-gradient(135deg, #5c31ae, #3f1d94);
}

.diary-list h2 {
  margin: 4px 0;
  font-size: 1.25rem;
}

.diary-card {
  grid-template-columns: 1fr;
}

@media (max-width: 430px) {
  .work-card,
  .finance-card {
    grid-template-columns: 58px 1fr;
  }

  .work-money,
  .finance-card aside {
    grid-column: 2;
  }
}

/* Dedicated create screens. */
.mock-page-nav .mock-add,
.mock-illustrated-head .mock-add {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #6d36b8, #402096);
  box-shadow: 0 8px 20px rgba(73, 39, 68, .06);
}

.mock-page-nav .mock-add {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 8px;
  font-size: 1.4rem;
}

.mock-illustrated-head .mock-add {
  position: absolute;
  right: 4px;
  top: 18px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
}

.routine-add {
  display: grid;
  place-items: center;
  text-align: center;
}

.new-screen-head {
  position: relative;
  min-height: 150px;
  padding: 18px 0 0 56px;
}

.new-screen-head h1 {
  margin: 5px 0 8px;
  color: #251331;
  font-size: 1.55rem;
  line-height: 1.15;
}

.new-screen-head p {
  margin: 0;
  color: #6e6571;
  line-height: 1.45;
}

.new-form-card {
  padding: 20px;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(73, 39, 68, .05);
}

.new-form-card .grid-form {
  grid-template-columns: 1fr;
}

.new-form-card label {
  color: #2c1743;
  font-weight: 900;
}

.new-form-card input,
.new-form-card select,
.new-form-card textarea {
  margin-top: 7px;
  background: #fff;
}

.new-form-card textarea {
  min-height: 150px;
}

.new-form-card button {
  margin-top: 8px;
  background: linear-gradient(135deg, #5b31ad, #3d1f94);
}

.new-form-card .button-link {
  min-height: 50px;
}

/* Detail/edit screens. */
.detail-head {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  min-height: 62px;
  margin-bottom: 12px;
}

.detail-head h1 {
  margin: 0;
  color: #171025;
  text-align: center;
  font-size: 1.22rem;
}

.detail-more {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(73, 39, 68, .06);
  color: #251331;
  font-weight: 900;
}

.detail-summary {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(73, 39, 68, .05);
}

.detail-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #f3edff;
  color: #6d45ac;
  font-size: 1.45rem;
  font-weight: 900;
}

.detail-main h2 {
  margin: 0 0 5px;
  color: #251331;
  font-size: 1.35rem;
}

.detail-main p {
  margin: 0 0 9px;
  color: #746b78;
}

.detail-summary aside {
  display: grid;
  gap: 4px;
  color: #4b2497;
  text-align: right;
}

.detail-summary aside strong {
  font-size: 1.05rem;
}

.detail-progress {
  grid-column: 1 / -1;
}

.detail-financial-goals .detail-icon,
.detail-books .detail-icon {
  border-radius: 8px;
}

.detail-journal-entries .detail-icon,
.detail-events .detail-icon {
  background: #fff0f2;
  color: #d36d7c;
}

.detail-prayers .detail-icon {
  background: #f0f7f2;
  color: #6fa082;
}

.detail-form-card {
  padding: 20px;
  border: 1px solid #f1e5ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(73, 39, 68, .05);
}

.detail-form-card h2 {
  margin: 0 0 16px;
  color: #251331;
  font-size: 1.12rem;
}

.detail-form-card .grid-form {
  grid-template-columns: 1fr;
}

.detail-form-card label {
  color: #2c1743;
  font-weight: 900;
}

.detail-form-card input,
.detail-form-card select,
.detail-form-card textarea {
  margin-top: 7px;
}

.detail-form-card button {
  margin-top: 8px;
  background: linear-gradient(135deg, #5b31ad, #3d1f94);
}

/* Contextual bottom navigation. */
.nav-context-rotina .sidebar nav a,
.nav-context-trabalho .sidebar nav a,
.nav-context-estudos .sidebar nav a {
  display: none;
}

.nav-context-rotina .sidebar nav .nav-home,
.nav-context-rotina .sidebar nav .nav-rotina,
.nav-context-rotina .sidebar nav .nav-estudos,
.nav-context-rotina .sidebar nav .nav-trabalho,
.nav-context-rotina .sidebar nav .nav-perfil,
.nav-context-trabalho .sidebar nav .nav-home,
.nav-context-trabalho .sidebar nav .nav-rotina,
.nav-context-trabalho .sidebar nav .nav-estudos,
.nav-context-trabalho .sidebar nav .nav-trabalho,
.nav-context-trabalho .sidebar nav .nav-perfil,
.nav-context-estudos .sidebar nav .nav-home,
.nav-context-estudos .sidebar nav .nav-rotina,
.nav-context-estudos .sidebar nav .nav-estudos,
.nav-context-estudos .sidebar nav .nav-trabalho,
.nav-context-estudos .sidebar nav .nav-perfil {
  display: flex;
  min-width: 58px;
  padding: 6px 2px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #4f4753;
  border: 0;
  background: transparent;
  font-size: .72rem;
  font-weight: 600;
}

.nav-context-rotina .sidebar nav,
.nav-context-trabalho .sidebar nav,
.nav-context-estudos .sidebar nav {
  padding-inline: 8px;
}

.nav-rotina .nav-mark,
.nav-estudos .nav-mark,
.nav-trabalho .nav-mark {
  display: grid;
  place-items: center;
  border: 0;
}

.nav-rotina .nav-mark::before,
.nav-estudos .nav-mark::before,
.nav-trabalho .nav-mark::before {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 8px;
  color: currentColor;
  font-size: .72rem;
  font-weight: 900;
}

.nav-rotina .nav-mark::before { content: "✓"; }
.nav-estudos .nav-mark::before { content: "L"; }
.nav-trabalho .nav-mark::before { content: "T"; }

/* Visual direction based on the Serena mobile screens. */
:root {
  --ink: #261331;
  --muted: #746b78;
  --line: #f1e6ec;
  --paper: #fff9fa;
  --card: rgba(255,255,255,.94);
  --rose: #de7583;
  --rose-soft: #fff0f2;
  --purple: #4b2497;
  --purple-soft: #f3edff;
  --plum: #251331;
  --sage: #8fa98d;
  --green: #79aa86;
  --gold: #e4b856;
  --shadow: 0 18px 38px rgba(73, 39, 68, .07);
  --soft-shadow: 0 10px 24px rgba(73, 39, 68, .045);
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 227, 232, .7), transparent 38%),
    linear-gradient(180deg, #fffafa 0%, #fff7f8 48%, #fbf7ff 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,0) 22%),
    radial-gradient(circle at 4% 18%, rgba(222,117,131,.08), transparent 25%);
}

.auth-shell {
  align-items: start;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 231, 235, .8), transparent 28%),
    linear-gradient(180deg, #fffafa, #fff7f8);
}

.auth-card {
  width: min(560px, 100%);
  grid-template-columns: 1fr;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-visual {
  min-height: 310px;
  background:
    radial-gradient(circle at 50% 72%, rgba(252,229,233,.92) 0 36%, transparent 37%),
    url("../img/serena-ref-auth.jpg") center bottom/contain no-repeat;
}

.auth-content {
  padding: 18px 24px 34px;
  text-align: center;
}

.auth-art {
  margin-bottom: 22px;
  color: #503149;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 9vw, 4.8rem);
  font-weight: 400;
  letter-spacing: .22em;
}

.auth-card h1 {
  margin: 0;
  color: #3b263d;
  font-size: clamp(2rem, 7vw, 2.8rem);
}

.auth-card h1::after {
  content: "";
  display: block;
  width: 68px;
  height: 6px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #eba1aa, #d36b7b);
}

.auth-card p {
  max-width: 330px;
  margin: 18px auto 28px;
  font-size: 1.08rem;
}

.auth-card form {
  gap: 18px;
  margin: 0 0 22px;
}

.auth-card label {
  text-align: left;
}

input,
select,
textarea {
  min-height: 50px;
  border-color: #f0dfe7;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 18px rgba(92, 53, 78, .025);
}

button,
.button-link {
  min-height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e78d98, #ce6274);
  box-shadow: 0 14px 24px rgba(211, 101, 117, .22);
}

button.ghost,
.button-link.ghost {
  background: #fff;
  color: var(--purple);
  border-color: #eadde7;
}

.shell {
  position: relative;
  grid-template-columns: 218px minmax(0, 1fr);
  max-width: 1240px;
  margin: 0 auto;
}

.content {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 24px 44px;
}

.sidebar {
  background: rgba(255,255,255,.78);
  border-right-color: #f5e7ee;
}

.brand {
  color: #503149;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: .24em;
}

.brand span {
  color: #fff;
  background: linear-gradient(135deg, #e8929d, #ce6574);
}

.sidebar nav a,
.logout {
  color: #6f6675;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  color: var(--rose);
  background: #fff2f4;
  border-color: #f1dfe5;
}

.app-topbar {
  margin-bottom: 22px;
}

.topbar-kicker {
  font-weight: 800;
  color: #d36d7c;
}

.hero,
.page-head {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.hero {
  min-height: 220px;
  padding: 26px 0 26px 12px;
  background:
    radial-gradient(circle at 82% 56%, rgba(255, 232, 236, .78) 0 24%, transparent 25%),
    url("../img/serena-ref-home.jpg") right center/250px auto no-repeat;
}

.page-head {
  min-height: 172px;
  align-items: flex-start;
  padding: 20px 150px 18px 4px;
  background:
    radial-gradient(circle at 78% 52%, rgba(245, 232, 255, .75) 0 22%, transparent 23%),
    url("../img/serena-ref-home.jpg") right top/180px auto no-repeat;
}

.page-head::after {
  display: none;
}

.hero h1,
.page-head h1 {
  color: #27113c;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.page-head h1 {
  font-size: clamp(2.25rem, 6vw, 3.35rem);
}

.page-head p:not(.eyebrow) {
  max-width: 360px;
  margin: 8px 0 0;
  color: #5f5165;
  line-height: 1.45;
}

.eyebrow {
  color: #d36d7c;
  letter-spacing: 0;
  text-transform: none;
  font-size: .98rem;
}

.stats {
  padding: 18px;
  border: 1px solid #f2e6ed;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--soft-shadow);
}

.stats article,
.panel,
.module-grid a,
.item-card,
.row,
.work-row,
.goal-row,
.mini-list a {
  border-color: #f2e8ee;
  background: rgba(255,255,255,.96);
  box-shadow: var(--soft-shadow);
}

.stats article {
  box-shadow: none;
}

.stats article::after {
  background: #fff0f3;
}

.stats strong {
  color: #2c1743;
}

.panel h2 {
  color: #261331;
  font-size: 1.18rem;
}

.panel-head a {
  color: #d36d7c;
}

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

.module-grid a {
  display: grid;
  grid-template-columns: 58px 1fr 20px;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 18px;
}

.module-grid a::before {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0;
  border-radius: 8px;
  color: var(--rose);
  font-size: 1.45rem;
  line-height: 1;
}

.module-grid a:nth-child(1)::before { content: "A"; }
.module-grid a:nth-child(2)::before { content: "R"; }
.module-grid a:nth-child(3)::before { content: "$"; }
.module-grid a:nth-child(4)::before { content: "T"; }
.module-grid a:nth-child(5)::before { content: "L"; }
.module-grid a:nth-child(6)::before { content: "+"; }
.module-grid a:nth-child(7)::before { content: "D"; }

.module-grid a::after,
.row::after,
.work-row::after,
.goal-row::after,
.mini-list a::after {
  content: ">";
  justify-self: end;
  color: #dd7d8a;
  font-size: 1.5rem;
  font-weight: 300;
}

.module-grid span {
  grid-column: 2;
  margin: -22px 0 0;
}

.filter-panel {
  border-color: #f2e8ee;
  background: rgba(255,255,255,.88);
}

.view-trabalho .page-head {
  background:
    radial-gradient(circle at 82% 55%, rgba(243, 237, 255, .88) 0 26%, transparent 27%),
    url("../img/serena-ref-trabalho.jpg") right 10px/260px auto no-repeat;
}

.view-financeiro .page-head {
  background:
    radial-gradient(circle at 80% 50%, rgba(243, 237, 255, .78) 0 24%, transparent 25%),
    url("../img/serena-ref-financeiro.jpg") right 8px/235px auto no-repeat;
}

.view-diario .page-head {
  background:
    radial-gradient(circle at 82% 55%, rgba(243, 237, 255, .78) 0 24%, transparent 25%),
    url("../img/serena-ref-diario.jpg") right 14px/250px auto no-repeat;
}

.view-rotina .page-head {
  background:
    radial-gradient(circle at 82% 58%, rgba(255, 232, 236, .72) 0 24%, transparent 25%),
    url("../img/serena-ref-rotina.jpg") right top/210px auto no-repeat;
}

.view-estudos .page-head {
  background:
    radial-gradient(circle at 82% 58%, rgba(243, 237, 255, .72) 0 24%, transparent 25%),
    url("../img/serena-ref-estudos.jpg") right 12px/230px auto no-repeat;
}

.view-espiritual .page-head {
  background:
    radial-gradient(circle at 82% 58%, rgba(243, 237, 255, .72) 0 24%, transparent 25%),
    url("../img/serena-ref-espiritual.jpg") right 16px/160px auto no-repeat;
}

.tag {
  background: #f3edff;
  color: var(--purple);
}

.danger-tag {
  color: #ba4b5d;
  background: #fff0f2;
}

.progress {
  background: #eeeaf1;
}

.progress i {
  background: linear-gradient(90deg, #5528a7, #8d63ca);
}

.row,
.work-row,
.goal-row {
  position: relative;
  grid-template-columns: 96px 1fr 20px;
}

.work-row {
  grid-template-columns: 1.4fr 1fr 140px 20px;
}

.goal-row {
  grid-template-columns: 1fr 80px 20px;
}

.row-actions,
.inline-actions {
  padding-top: 12px;
}

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

.item-card {
  position: relative;
  padding: 20px;
}

.item-card h3 {
  color: #201036;
}

.flash {
  border-color: #d6eedf;
  background: #f0fbf4;
}

@media (min-width: 861px) {
  .view-menu .content,
  .view-financeiro .content,
  .view-espiritual .content,
  .view-diario .content,
  .view-rotina .content,
  .view-estudos .content {
    max-width: 820px;
  }
}

@media (max-width: 860px) {
  body {
    background: linear-gradient(180deg, #fffafa 0%, #fff8f9 100%);
  }

  .shell {
    display: block;
    max-width: 640px;
  }

  .content {
    padding: 24px 22px 112px;
  }

  .app-topbar {
    display: none;
  }

  .sidebar {
    padding: 12px 22px 18px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
  }

  .sidebar nav {
    justify-content: space-around;
    gap: 0;
    padding: 12px 16px;
    border: 1px solid #f1e3eb;
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 26px rgba(73, 39, 68, .06);
  }

  .sidebar nav a {
    display: none;
  }

  .sidebar nav .nav-home,
  .sidebar nav .nav-menu,
  .sidebar nav .nav-perfil {
    display: flex;
    min-width: 74px;
    color: #524957;
    border: 0;
    background: transparent;
  }

  .sidebar nav a.active,
  .sidebar nav a:hover {
    color: var(--rose);
    background: transparent;
    border: 0;
  }

  .nav-mark {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid currentColor;
  }

  .nav-home .nav-mark {
    border-radius: 4px 4px 8px 8px;
    border-top-width: 8px;
  }

  .nav-menu .nav-mark {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    border: 0;
  }

  .nav-menu .nav-mark::before,
  .nav-menu .nav-mark::after {
    content: "";
    border: 2px solid currentColor;
    border-radius: 4px;
    box-shadow: 12px 0 0 -2px transparent;
  }

  .nav-perfil .nav-mark {
    border-radius: 50%;
  }

  .hero {
    min-height: 248px;
    padding: 34px 170px 22px 10px;
    background:
      radial-gradient(circle at 82% 46%, rgba(255, 232, 236, .92) 0 28%, transparent 29%),
      url("../img/serena-ref-home.jpg") right 18px/180px auto no-repeat;
  }

  .hero-copy {
    max-width: 210px;
  }

  .page-head {
    min-height: 170px;
    padding: 28px 152px 12px 4px;
    background:
      radial-gradient(circle at 86% 48%, rgba(245, 232, 255, .86) 0 26%, transparent 27%),
      url("../img/serena-ref-home.jpg") right 8px/160px auto no-repeat;
  }

  .view-trabalho .page-head {
    background:
      radial-gradient(circle at 86% 50%, rgba(243, 237, 255, .88) 0 28%, transparent 29%),
      url("../img/serena-ref-trabalho.jpg") right 20px/210px auto no-repeat;
  }

  .view-financeiro .page-head {
    background:
      radial-gradient(circle at 86% 50%, rgba(243, 237, 255, .82) 0 28%, transparent 29%),
      url("../img/serena-ref-financeiro.jpg") right 32px/178px auto no-repeat;
  }

  .view-diario .page-head {
    background:
      radial-gradient(circle at 86% 50%, rgba(243, 237, 255, .8) 0 28%, transparent 29%),
      url("../img/serena-ref-diario.jpg") right 26px/190px auto no-repeat;
  }

  .view-rotina .page-head {
    background:
      radial-gradient(circle at 86% 50%, rgba(255, 232, 236, .72) 0 28%, transparent 29%),
      url("../img/serena-ref-rotina.jpg") right 8px/176px auto no-repeat;
  }

  .view-estudos .page-head {
    background:
      radial-gradient(circle at 86% 50%, rgba(243, 237, 255, .72) 0 28%, transparent 29%),
      url("../img/serena-ref-estudos.jpg") right 26px/184px auto no-repeat;
  }

  .view-espiritual .page-head {
    background:
      radial-gradient(circle at 86% 50%, rgba(243, 237, 255, .72) 0 28%, transparent 29%),
      url("../img/serena-ref-espiritual.jpg") right 18px/138px auto no-repeat;
  }

  .page-head h1 {
    font-size: clamp(2.35rem, 9vw, 3rem);
  }

  .page-head button {
    position: fixed;
    right: 26px;
    bottom: 104px;
    z-index: 20;
    width: 62px;
    height: 62px;
    min-height: 62px;
    padding: 0;
    border-radius: 50%;
    color: transparent;
    background: linear-gradient(135deg, #e77f91, #d46073);
    box-shadow: 0 18px 30px rgba(211, 101, 117, .3);
  }

  .page-head button::before {
    content: "+";
    color: #fff;
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1;
  }

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

  .dashboard-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-grid a {
    min-height: 82px;
  }

  .module-grid span {
    margin-top: -18px;
  }

  .row,
  .work-row,
  .goal-row {
    grid-template-columns: 1fr 20px;
  }

  .row time {
    grid-column: 1;
  }

  .row > div:first-of-type,
  .work-row > div:first-child,
  .goal-row > div:first-child {
    grid-column: 1;
  }

  .row::after,
  .work-row::after,
  .goal-row::after {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
  }

  .inline-actions,
  .row-actions {
    grid-column: 1 / -1;
  }

  .filter-actions {
    flex-direction: column;
  }
}

/* Module refinements for the screens with stronger references. */
.view-agenda .row,
.view-trabalho .work-row,
.view-financeiro .goal-row,
.view-rotina .item-card {
  overflow: hidden;
}

.view-agenda .row time {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 76px;
  border-radius: 8px;
  background: #fff1f3;
  color: #d86f80;
}

.view-agenda .row time small {
  color: #8d7d88;
  font-weight: 700;
}

.view-agenda .row > div:first-of-type::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: currentColor;
  color: #e7a0aa;
}

.view-agenda .dot-purple > div:first-of-type::before { color: #9a75d0; }
.view-agenda .dot-green > div:first-of-type::before { color: #78a98c; }
.view-agenda .dot-gold > div:first-of-type::before { color: #e0b24e; }

.view-rotina .cards {
  gap: 12px;
}

.view-rotina .item-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 14px;
  align-items: start;
}

.view-rotina .item-card::before {
  content: "";
  grid-row: 1 / span 4;
  width: 22px;
  height: 22px;
  margin-top: 6px;
  border: 2px solid #b9b1bd;
  border-radius: 50%;
}

.view-rotina .item-card.is-done::before {
  border-color: #77b96f;
  background: radial-gradient(circle, #77b96f 0 44%, transparent 48%);
}

.view-rotina .item-card .tag,
.view-rotina .item-card h3,
.view-rotina .item-card p,
.view-rotina .item-card small,
.view-rotina .item-card .card-actions {
  grid-column: 2;
}

.view-rotina .item-card .tag {
  width: fit-content;
  margin-bottom: 4px;
}

.view-trabalho .work-row {
  grid-template-columns: 58px 1.35fr minmax(130px, .8fr) 110px 20px;
}

.view-trabalho .work-row::before {
  content: "T";
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #f3edff;
  color: #8a61c5;
  font-weight: 900;
}

.view-trabalho .work-row > div:first-child {
  align-self: center;
}

.view-trabalho .work-row b,
.view-financeiro .goal-row b {
  color: #4b2497;
  font-size: 1.12rem;
}

.view-financeiro .goal-row {
  grid-template-columns: 58px 1fr 92px 20px;
}

.view-financeiro .goal-row::before {
  content: "$";
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #f3edff;
  color: #4b2497;
  font-weight: 900;
}

.view-financeiro .goal-row > div:first-child {
  align-self: center;
}

.view-financeiro .goal-row b {
  align-self: center;
  text-align: right;
  font-size: 1.35rem;
}

.view-financeiro .goal-row span {
  display: block;
  margin: 4px 0 10px;
}

@media (max-width: 860px) {
  .view-trabalho .work-row,
  .view-financeiro .goal-row {
    grid-template-columns: 44px 1fr 20px;
  }

  .view-trabalho .work-row::before,
  .view-financeiro .goal-row::before {
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
  }

  .view-trabalho .work-row > div:first-child,
  .view-financeiro .goal-row > div:first-child {
    grid-column: 2;
  }

  .view-trabalho .work-row .progress,
  .view-trabalho .work-row b,
  .view-financeiro .goal-row b {
    grid-column: 2;
  }

  .view-trabalho .work-row::after,
  .view-financeiro .goal-row::after {
    grid-column: 3;
  }

  .view-agenda .row {
    grid-template-columns: 78px 1fr 20px;
  }

  .view-agenda .row time {
    grid-column: 1;
  }

  .view-agenda .row > div:first-of-type {
    grid-column: 2;
    align-self: center;
  }

  .view-agenda .row::after {
    grid-column: 3;
  }
}

/* Forms and secondary modules. */
.filter-panel {
  padding: 14px;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #2b1742;
}

.filter-head span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #f6efff;
  color: #6c47a5;
  font-size: .86rem;
  font-weight: 800;
}

.filter-form {
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(112px, 160px)) auto;
}

.filter-form label {
  color: #8a7d8d;
  font-size: .78rem;
}

.filter-form input,
.filter-form select {
  min-height: 44px;
  border-radius: 8px;
  background: #fff;
}

.filter-actions button,
.filter-actions .button-link {
  min-height: 44px;
  padding: 10px 14px;
}

.entry-form-panel,
.edit-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,250,252,.96));
}

.entry-form-panel::before,
.edit-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #e88997, #6b3ab3);
}

.entry-form-panel h2 {
  margin-bottom: 18px;
  color: #2c1743;
}

.grid-form label {
  color: #2d2040;
  font-weight: 800;
}

.grid-form input,
.grid-form select,
.grid-form textarea {
  margin-top: 3px;
  color: #251331;
  font-weight: 500;
}

.grid-form textarea {
  min-height: 142px;
  line-height: 1.55;
}

.card-actions,
.row-actions,
.inline-actions {
  gap: 8px;
}

.card-actions .button-link,
.card-actions button,
.row-actions .button-link,
.row-actions button,
.inline-actions .button-link,
.inline-actions button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: .84rem;
}

.mini-form {
  padding: 8px;
  border-radius: 8px;
  background: #fff9fb;
}

.mini-form input,
.mini-form select {
  min-height: 38px;
  border-radius: 8px;
}

.view-estudos .item-card,
.view-espiritual .item-card,
.view-diario .item-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0 14px;
}

.view-estudos .item-card::before,
.view-espiritual .item-card::before,
.view-diario .item-card::before {
  content: "L";
  display: grid;
  place-items: center;
  grid-row: 1 / span 5;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #f3edff;
  color: #6d45ac;
  font-weight: 900;
}

.view-espiritual .item-card::before {
  content: "+";
  background: #f0f7f2;
  color: #6fa082;
}

.view-diario .item-card::before {
  content: "D";
  background: #fff0f3;
  color: #d36d7c;
}

.view-estudos .item-card > *,
.view-espiritual .item-card > *,
.view-diario .item-card > * {
  grid-column: 2;
}

.view-diario .item-card p,
.view-espiritual .item-card p {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.view-estudos .item-card .tag,
.view-espiritual .item-card .tag,
.view-diario .item-card .tag {
  width: fit-content;
}

@media (max-width: 860px) {
  .filter-panel {
    padding: 12px;
  }

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

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

  .entry-form-panel,
  .edit-panel {
    padding: 20px;
  }

  .grid-form {
    gap: 13px;
  }

  .card-actions,
  .row-actions,
  .inline-actions {
    justify-content: stretch;
  }

  .card-actions .button-link,
  .card-actions button,
  .row-actions .button-link,
  .row-actions button,
  .inline-actions .button-link,
  .inline-actions button {
    flex: 1 1 auto;
  }
}
