:root,
[data-theme="sage"] {
  --sage-950: #1e4a3e;
  --sage-800: #2f6f5e;
  --sage-500: #4f9f8c;
  --sage-300: #7bc4b2;
  --sage-100: #d4ede3;
  --sage-50: #e8f4ef;
  --sand: #f7f3eb;
  --ink: #1a2e28;
  --muted: #5a7269;
  --peach: #e8a87c;
  --line: rgba(47, 111, 94, 0.16);
  /* Capacitor 8: --safe-area-inset-*; piso mínimo no nativo via html.is-native */
  --sat-floor: 0px;
  --sat: max(var(--sat-floor), var(--safe-area-inset-top, env(safe-area-inset-top, 0px)));
  --sab: max(var(--sab-floor, 0px), var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
  --sal: var(--safe-area-inset-left, env(safe-area-inset-left, 0px));
  --sar: var(--safe-area-inset-right, env(safe-area-inset-right, 0px));
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Nunito", "Trebuchet MS", sans-serif;
  --read-rail-h: 52px;
  --chrome-bar: 52px;
  --chrome-h: calc(var(--chrome-bar) + var(--sat) + 14px);
  --tabbar-h: 56px;
  --bg-a: #cfe8dc;
  --bg-b: #f0e6d4;
  --bg-c: #eef6f2;
}

[data-theme="ocean"] {
  --sage-950: #1a365d;
  --sage-800: #2b6cb0;
  --sage-500: #4299e1;
  --sage-300: #90cdf4;
  --sage-100: #bee3f8;
  --sage-50: #ebf8ff;
  --sand: #f0f7fc;
  --ink: #1a2a3a;
  --muted: #4a657a;
  --peach: #63b3ed;
  --line: rgba(43, 108, 176, 0.18);
  --bg-a: #c5dff5;
  --bg-b: #dce8f5;
  --bg-c: #eef5fb;
}

[data-theme="ember"] {
  --sage-950: #7b341e;
  --sage-800: #c05621;
  --sage-500: #dd6b20;
  --sage-300: #f6ad55;
  --sage-100: #feebc8;
  --sage-50: #fffaf0;
  --sand: #fff7ed;
  --ink: #2d1a12;
  --muted: #7a5a48;
  --peach: #ed8936;
  --line: rgba(192, 86, 33, 0.18);
  --bg-a: #f8d4b8;
  --bg-b: #f3e4d4;
  --bg-c: #fbf3ea;
}

[data-theme="aurora"] {
  --sage-950: #2d4a3e;
  --sage-800: #3d8b74;
  --sage-500: #6b8fd6;
  --sage-300: #b8a4d9;
  --sage-100: #e4dff2;
  --sage-50: #f3f0f9;
  --sand: #f7f4fb;
  --ink: #241f33;
  --muted: #5f5a72;
  --peach: #9b7ec8;
  --line: rgba(107, 143, 214, 0.2);
  --bg-a: #c8e5da;
  --bg-b: #ddd4f0;
  --bg-c: #f0eef8;
}

/* Rosa vermelha — tom de rosa vermelha madura, sem ficar pastel */
[data-theme="rose"] {
  --sage-950: #5c1228;
  --sage-800: #8b1e3f;
  --sage-500: #b8335a;
  --sage-300: #d4738c;
  --sage-100: #f0d0d9;
  --sage-50: #f8e8ec;
  --sand: #faf4f5;
  --ink: #2a1218;
  --muted: #7a4a56;
  --peach: #c45c6a;
  --line: rgba(139, 30, 63, 0.18);
  --bg-a: #e8c4ce;
  --bg-b: #f0e0e4;
  --bg-c: #faf2f4;
}

/* Aquarela pastel — só no módulo de medicação (temporário) */
[data-theme="watercolor"] {
  --sage-950: #3d5a52;
  --sage-800: #6a9e8f;
  --sage-500: #9bc4b5;
  --sage-300: #c5ddd4;
  --sage-100: #e8f2ed;
  --sage-50: #f6faf7;
  --sand: #faf6ef;
  --ink: #3a4540;
  --muted: #7a8a82;
  --peach: #e8c4a0;
  --line: rgba(106, 158, 143, 0.18);
  --bg-a: #fde8b8;
  --bg-b: #d4ebe3;
  --bg-c: #f7f3eb;
  --med-fade: #faf6ef;
}

html[data-theme="watercolor"].med-period-morning {
  --bg-a: #ffe9a8;
  --bg-b: #d8ebe0;
  --bg-c: #faf6ef;
  --sage-800: #7aab7a;
  --sage-500: #a8c99a;
  --peach: #f0c988;
  --med-fade: #faf6ef;
}

html[data-theme="watercolor"].med-period-afternoon {
  --bg-a: #b8e0ef;
  --bg-b: #d4ebe8;
  --bg-c: #f3f8f6;
  --sage-800: #5a9eb0;
  --sage-500: #7eb8c8;
  --peach: #9fd4c8;
  --med-fade: #f0f7f5;
}

html[data-theme="watercolor"].med-period-evening {
  --bg-a: #d4c8e8;
  --bg-b: #e8dff0;
  --bg-c: #f6f2f8;
  --sage-800: #7a6fa0;
  --sage-500: #a898c8;
  --peach: #c8b0d8;
  --med-fade: #f5f1f8;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 500px at 0% 0%, var(--bg-a) 0%, transparent 55%),
    radial-gradient(700px 420px at 100% 10%, var(--bg-b) 0%, transparent 50%),
    linear-gradient(165deg, var(--sage-50), var(--sand) 55%, var(--bg-c));
}

body {
  min-height: 100dvh;
  padding:
    calc(12px + var(--sat))
    calc(18px + var(--sar))
    calc(24px + var(--sab))
    calc(18px + var(--sal));
}

body.app-ready {
  padding-top: calc(8px + var(--chrome-h));
  padding-bottom: calc(8px + var(--tabbar-h) + var(--sab));
}

/* No modo leitura o shell ocupa a tela; o scroll é interno */
body.is-reading {
  padding: 0;
  height: 100dvh;
  overflow: hidden;
}

body.is-reading.has-tabs .reading-shell,
body.is-reading.has-tabs .post-shell,
body.is-reading.has-tabs .lexicon-entry-shell,
body.is-reading.has-tabs .about-shell,
body.is-reading.has-tabs .posts-shell,
body.is-reading.has-tabs .lexicon-shell,
body.is-reading.has-tabs .more-shell,
body.is-reading.has-tabs .diary-shell,
body.is-reading.has-tabs .med-shell {
  bottom: calc(var(--tabbar-h) + var(--sab));
  padding-bottom: 0;
}

/* Medicações: tela cheia — sem header fixo do app */
body.is-medicine .site-header,
body.is-medicine #header-search-panel {
  display: none !important;
}

body.is-medicine .med-shell {
  top: 0;
  padding-top: 0;
  z-index: 22;
}

body.is-medicine .bottom-nav {
  background: color-mix(in srgb, var(--sand) 78%, #fff);
  border-top-color: var(--line);
}

body.is-medicine.med-picker-open .bottom-nav,
body.is-medicine.med-cal-open .bottom-nav {
  pointer-events: none;
}

body.tabs-hidden .bottom-nav {
  display: none !important;
}

body.tabs-hidden.app-ready:not(.is-reading) {
  padding-bottom: calc(16px + var(--sab));
}

/* —— Splash —— */
.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  padding: calc(2rem + var(--sat)) 2rem calc(2rem + var(--sab));
  text-align: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.splash.is-leaving {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 35%, #fff8 0%, transparent 40%),
    linear-gradient(160deg, #e8f4ef, #c5e4d8 60%, #b8dfd0);
  animation: splashPulse 3.2s ease-in-out infinite alternate;
}

@keyframes splashPulse {
  from { filter: saturate(1); }
  to { filter: saturate(1.08) brightness(1.02); }
}

.splash-art {
  position: relative;
  width: min(52vw, 200px);
  margin-bottom: 0.45rem;
  animation: floatIn 0.9s ease both;
}

.splash-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(47, 111, 94, 0.2));
}

.gut-art {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(47, 111, 94, 0.22));
}

.gut-path {
  transform-origin: 100px 100px;
  animation: gutBreathe 2.8s ease-in-out infinite;
}

.gut-dot { animation: dotBlink 2.4s ease-in-out infinite; }
.gut-dot.d2 { animation-delay: 0.35s; }
.gut-dot.d3 { animation-delay: 0.7s; }

@keyframes gutBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes dotBlink {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.splash-brand {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  font-weight: 700;
  color: var(--sage-950);
  letter-spacing: -0.02em;
  animation: floatIn 0.9s 0.12s ease both;
}

.splash-tag {
  position: relative;
  margin: 0.2rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 16rem;
  line-height: 1.35;
  animation: floatIn 0.9s 0.2s ease both;
}

.splash-bar {
  position: relative;
  width: 88px;
  height: 3px;
  border-radius: 99px;
  background: rgba(47, 111, 94, 0.15);
  overflow: hidden;
}

.splash-bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--sage-800);
  animation: loadBar 1.4s ease-in-out infinite;
}

@keyframes loadBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

/* —— Notify gate —— */
.notify-gate {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: calc(1.5rem + var(--sat)) 1.25rem calc(1.5rem + var(--sab));
  background: rgba(30, 74, 62, 0.35);
  backdrop-filter: blur(6px);
}

.notify-gate[hidden] { display: none !important; }

.notify-card {
  width: min(100%, 380px);
  padding: 1.4rem 1.25rem 1.25rem;
  border-radius: 20px;
  background: #f7fbf8;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(30, 74, 62, 0.18);
  animation: floatIn 0.35s ease both;
}

.notify-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage-500);
}

.notify-card h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--sage-950);
}

.notify-text {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.notify-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.btn-ghost {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  background: transparent;
  color: var(--sage-800);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(47, 111, 94, 0.08);
  outline: none;
}

/* —— Chrome: site header + drawer + bottom nav —— */
.chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  pointer-events: none;
}

.chrome > * {
  pointer-events: auto;
}

.site-header,
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--chrome-h);
  height: auto;
  padding:
    calc(var(--sat) + 6px)
    calc(14px + var(--sar))
    8px
    calc(14px + var(--sal));
  background: color-mix(in srgb, var(--sage-50) 96%, #fff);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
  z-index: 2;
}

/* Faixa opaca atrás dos ícones do sistema (contraste da status bar) */
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: max(var(--sat), 36px);
  background: var(--sage-50);
  pointer-events: none;
  z-index: -1;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-header-icon {
  appearance: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--sage-800);
}

.btn-header-icon[aria-expanded="true"] {
  background: var(--sage-800);
  border-color: var(--sage-800);
  color: #fff;
}

.header-search-panel {
  position: absolute;
  top: var(--chrome-h);
  left: 0;
  right: 0;
  z-index: 46;
  padding: 0.75rem calc(14px + var(--sar)) 0.85rem calc(14px + var(--sal));
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(26, 46, 40, 0.08);
}

.header-search-panel[hidden] {
  display: none !important;
}

.drawer-search-fallback {
  padding: 0.5rem 0.85rem 0;
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 46;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  height: calc(var(--tabbar-h) + var(--sab));
  padding: 0.3rem calc(6px + var(--sar)) var(--sab) calc(6px + var(--sal));
  box-sizing: border-box;
  background: color-mix(in srgb, var(--sage-50) 88%, #fff);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

.bottom-nav.has-diary {
  grid-template-columns: repeat(5, 1fr);
}

.bottom-nav.has-diary.has-medicine {
  grid-template-columns: repeat(6, 1fr);
}

.bottom-nav.has-diary.has-medicine .bottom-nav-btn,
.bottom-nav.has-diary .bottom-nav-btn {
  font-size: 0.62rem;
  padding: 0.3rem 0.1rem;
}

.bottom-nav-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
  border-radius: 12px;
}

.bottom-nav-icon {
  font-size: 1.05rem;
  line-height: 1;
  color: var(--sage-500);
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
}

.bottom-nav-icon svg {
  width: 22px;
  height: 22px;
  color: inherit;
}

.bottom-nav-btn.is-active {
  color: var(--sage-950);
  background: color-mix(in srgb, var(--sage-100) 70%, transparent);
}

.bottom-nav-btn.is-active .bottom-nav-icon {
  color: var(--sage-800);
}

.top-brand {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  cursor: pointer;
  color: var(--sage-950);
  font: inherit;
  min-width: 0;
}

.top-logo {
  width: 2.05rem;
  height: 2.05rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  display: block;
}

.top-mark {
  display: none;
}

.top-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11.5rem;
}

.btn-menu {
  appearance: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--sage-800);
  padding: 0;
}

.btn-menu:hover,
.btn-menu:focus-visible {
  background: #fff;
  outline: none;
  border-color: rgba(47, 111, 94, 0.35);
}

.btn-menu[aria-expanded="true"] {
  background: var(--sage-800);
  border-color: var(--sage-800);
  color: #fff;
}

.btn-menu .hi,
.btn-menu svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hi,
.btn-back-ico,
.ico-fav,
.ico-read,
.menu-drop-btn svg,
.menu-drop-panel button svg,
.more-link-arrow svg {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.2em;
  flex-shrink: 0;
}

.menu-drop-btn,
.menu-drop-panel button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-back-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.more-link-arrow {
  display: grid;
  place-items: center;
  color: var(--sage-800);
}

.more-link-arrow svg {
  width: 20px;
  height: 20px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 46;
  background: rgba(26, 46, 40, 0.42);
  animation: fadeIn 0.2s ease both;
}

.site-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 47;
  width: min(320px, 88vw);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f4faf7, var(--sand));
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(30, 74, 62, 0.12);
  padding:
    calc(0.75rem + var(--sat))
    calc(1rem + var(--sar))
    calc(1.25rem + var(--sab))
    1rem;
  animation: drawerIn 0.28s ease both;
}

@keyframes drawerIn {
  from { transform: translateX(100%); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sage-950);
}

.btn-drawer-close {
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 10px;
  background: rgba(47, 111, 94, 0.1);
  color: var(--sage-800);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.drawer-body {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.drawer-group {
  margin-bottom: 0.55rem;
}

.drawer-group-toggle {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  background: rgba(47, 111, 94, 0.08);
  padding: 0.7rem 0.65rem;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  color: var(--sage-950);
}

.drawer-group-toggle:hover,
.drawer-group-toggle:focus-visible {
  background: rgba(47, 111, 94, 0.14);
  outline: none;
}

.drawer-group-icon {
  font-size: 1rem;
  color: var(--sage-500);
}

.drawer-group-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-800);
  text-align: left;
}

.drawer-chevron {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--sage-500);
  transition: transform 0.2s ease;
}

.drawer-chevron svg {
  width: 18px;
  height: 18px;
}

.drawer-group.is-open .drawer-chevron {
  transform: rotate(180deg);
}

.drawer-icon,
.drawer-group-icon {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  color: var(--sage-800);
}

.drawer-hi {
  width: 20px !important;
  height: 20px !important;
  vertical-align: 0 !important;
}

.cta-arrow {
  width: 1em !important;
  height: 1em !important;
  margin-left: 0.15rem;
  vertical-align: -0.15em !important;
}

.blog-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.post-card-foot {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.card-icon-btn.is-on .ico-fav,
.card-icon-btn.is-on svg,
button.is-on .ico-fav {
  color: var(--peach);
}

.drawer-submenu {
  padding: 0.35rem 0 0.25rem 0.25rem;
}

.nav-search {
  margin-bottom: 1rem;
}

.nav-search-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-500);
  margin-bottom: 0.4rem;
}

.nav-search-wrap {
  position: relative;
}

.nav-search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 2.2rem 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.nav-search-input:focus {
  outline: none;
  border-color: rgba(47, 111, 94, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.12);
}

.nav-search-clear {
  appearance: none;
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 8px;
  background: rgba(47, 111, 94, 0.1);
  color: var(--sage-800);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.nav-search-results {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  max-height: 220px;
  overflow-y: auto;
}

.nav-search-empty {
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-search-option {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.nav-search-option:hover,
.nav-search-option:focus-visible {
  background: rgba(47, 111, 94, 0.1);
  outline: none;
}

.nav-search-option-icon {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sage-500);
  min-width: 1.4rem;
}

.nav-search-option strong {
  display: block;
  font-size: 0.92rem;
  color: var(--sage-950);
}

.nav-search-option em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.drawer-link {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.55rem;
  margin: 0 0 0.15rem;
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.drawer-link:hover,
.drawer-link:focus-visible {
  background: rgba(47, 111, 94, 0.1);
  outline: none;
}

.drawer-link.is-soon {
  opacity: 0.5;
  cursor: not-allowed;
}

.drawer-icon {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sage-500);
  min-width: 1.6rem;
  line-height: 1.35;
  padding-top: 0.05rem;
}

.drawer-link-text {
  min-width: 0;
}

.drawer-link strong {
  display: block;
  font-size: 0.98rem;
  color: var(--sage-950);
}

.drawer-link-text > span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}

body.drawer-open {
  overflow: hidden;
}

/* —— App shell —— */
.app {
  max-width: 640px;
  margin: 0 auto;
  animation: fadeIn 0.45s ease both;
}

.view-home {
  padding-bottom: 0.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.view[hidden],
.reading-shell[hidden],
.about-shell[hidden],
.posts-shell[hidden],
.post-shell[hidden],
.lexicon-shell[hidden],
.lexicon-entry-shell[hidden],
.more-shell[hidden],
.diary-shell[hidden],
.med-shell[hidden],
.chrome[hidden],
.drawer-backdrop[hidden],
.site-drawer[hidden] { display: none !important; }

.home-hero {
  padding: 0.35rem 0 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.home-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-500);
}

.home-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5.8vw, 2.15rem);
  font-weight: 700;
  color: var(--sage-950);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.home-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 32rem;
}

.home-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.home-quick-btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sage-800);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.home-quick-btn:hover,
.home-quick-btn:focus-visible {
  background: var(--sage-800);
  border-color: var(--sage-800);
  color: #fff;
  outline: none;
}

.home-toolbar {
  display: none !important;
}

.site-page.more-shell,
.more-shell {
  position: fixed;
  top: var(--chrome-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--sab);
  padding-left: var(--sal);
  padding-right: var(--sar);
  background: linear-gradient(165deg, var(--sage-50), var(--sand) 55%, var(--bg-c));
}

.more-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 0.55rem 1.15rem 1.25rem;
}

.more-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.more-link {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.more-link:hover,
.more-link:focus-visible {
  border-color: color-mix(in srgb, var(--sage-500) 40%, var(--line));
  outline: none;
}

.more-link-icon {
  font-size: 1.15rem;
  color: var(--sage-500);
  min-width: 1.5rem;
}

.more-link-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.more-link-text strong {
  font-size: 1rem;
  color: var(--sage-950);
}

.more-link-text em {
  font-style: normal;
  font-size: 0.84rem;
  color: var(--muted);
}

.more-themes {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
}

.more-nav-pref {
  margin-top: 0.85rem;
}

.more-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sage-950);
  cursor: pointer;
  user-select: none;
}

.more-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  clip: rect(0 0 0 0);
}

.more-switch-ui {
  position: relative;
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 28%, #fff);
  border: 1px solid var(--line);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.more-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(26, 46, 40, 0.22);
  transition: transform 0.2s ease;
}

.more-switch-input:checked + .more-switch-ui {
  background: var(--sage-800);
  border-color: var(--sage-800);
}

.more-switch-input:checked + .more-switch-ui::after {
  transform: translateX(1.15rem);
}

.more-switch-input:focus-visible + .more-switch-ui {
  outline: 2px solid var(--sage-500);
  outline-offset: 2px;
}

.more-switch-label {
  line-height: 1.35;
}

html.is-native {
  /* Status bar Android costuma ter ≥24–32px; piso evita texto sob os ícones do sistema */
  --sat-floor: 36px;
}

html.is-native body.is-native-nav-hidden {
  --sab-floor: 0px;
}

.more-name-field {
  display: block;
  margin-top: 0.55rem;
}

.more-name-field input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sage-950);
}

.posts-shell.site-page .about-top,
.lexicon-shell.site-page .about-top {
  display: none;
}

.posts-shell.site-page,
.lexicon-shell.site-page {
  top: var(--chrome-h);
}

.home-toolbar-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-500);
}

.layout-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.layout-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sage-800);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.layout-btn.is-active {
  background: var(--sage-800);
  color: #fff;
}

.home-feed {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* —— Blog mode —— */
.blog-feature {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.blog-feature-hit {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26, 46, 40, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-feature-hit:hover,
.blog-feature-hit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 46, 40, 0.1);
  outline: none;
}

.blog-feature-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sage-100);
}

.blog-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-feature-media-fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--sage-100) 80%, #fff), var(--sage-50));
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sage-500);
}

.blog-feature-media-fallback .hi,
.blog-feature-media-fallback svg {
  width: 48px;
  height: 48px;
  display: block;
}

.blog-feature-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.15rem;
}

.blog-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-500);
}

.blog-feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  font-weight: 700;
  color: var(--sage-950);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.blog-excerpt,
.blog-row-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-cta {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sage-800);
}

.blog-feature-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.15rem;
}

.blog-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.blog-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sage-950);
  letter-spacing: -0.01em;
}

.blog-section-lead {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.blog-section-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sage-800);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  padding: 0.25rem 0;
}

.blog-section-link:hover,
.blog-section-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.blog-journey {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.blog-journey-hit {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: stretch;
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sage-100) 70%, #fff), rgba(255, 255, 255, 0.92));
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.blog-journey-hit:hover,
.blog-journey-hit:focus-visible {
  border-color: color-mix(in srgb, var(--sage-500) 40%, var(--line));
  outline: none;
}

.blog-journey-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage-500);
  line-height: 1;
  align-self: center;
  min-width: 2.4rem;
}

.blog-journey-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.blog-journey-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sage-950);
  line-height: 1.25;
}

.blog-mins {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage-500);
}

.blog-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.blog-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.blog-row-hit {
  appearance: none;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.blog-row-hit:hover,
.blog-row-hit:focus-visible {
  background: #fff;
  border-color: color-mix(in srgb, var(--sage-500) 35%, var(--line));
  outline: none;
}

.blog-row-hit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.blog-row-thumb {
  display: block;
  width: 5.5rem;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sage-100);
  flex-shrink: 0;
  align-self: start;
}

.blog-row-thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.blog-row-thumb-fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sage-500);
  background:
    linear-gradient(145deg, var(--sage-100), rgba(255, 255, 255, 0.8));
}

.blog-row-thumb-fallback .hi,
.blog-row-thumb-fallback svg {
  width: 28px;
  height: 28px;
  display: block;
}

.blog-row-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  min-width: 0;
  padding-top: 0.1rem;
}

.blog-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sage-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-row-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--sage-950);
  line-height: 1.3;
}

.blog-row-desc {
  -webkit-line-clamp: 2;
  font-size: 0.84rem;
}

.blog-row .card-inline-actions,
.blog-journey > .card-inline-actions {
  align-self: flex-end;
  padding-right: 0.15rem;
}

.blog-soon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.blog-soon-item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--line) 80%, var(--sage-300));
  border-radius: 12px;
  background: color-mix(in srgb, var(--sage-50) 55%, transparent);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: not-allowed;
  opacity: 0.85;
}

.blog-soon-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sage-300);
  min-width: 1.5rem;
}

.blog-soon-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.blog-soon-text strong {
  font-size: 0.86rem;
  color: var(--sage-800);
  line-height: 1.25;
}

.blog-soon-text span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sage-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Lista mode —— */
.home-feed.is-list {
  gap: 1.1rem;
}

.home-group-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding: 0 0.1rem;
}

.home-group-label .home-group-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sage-950);
}

.home-group-icon {
  color: var(--sage-500);
  font-size: 0.95rem;
}

.home-group-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sage-500);
  background: color-mix(in srgb, var(--sage-500) 12%, transparent);
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
}

.home-group-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.theme-toggle {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.theme-btn {
  appearance: none;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  font-size: 0;
  padding: 0;
}

.theme-btn[data-theme="sage"] { background: #2f6f5e; }
.theme-btn[data-theme="ocean"] { background: #2b6cb0; }
.theme-btn[data-theme="ember"] { background: #c05621; }
.theme-btn[data-theme="aurora"] {
  background: linear-gradient(135deg, #3d8b74, #8b6bb5);
}
.theme-btn[data-theme="rose"] { background: #8b1e3f; }

.chapter-body,
.post-body {
  scroll-margin-bottom: 40vh;
}
/* .chapter-foot-spacer {
  height: min(42vh, 320px);
  pointer-events: none;
} */

.theme-btn.is-active {
  outline: 2px solid var(--sage-800);
  outline-offset: 2px;
}

.content-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.35rem;
}

.card-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.2rem 0.1rem;
  min-height: 1.5rem;
}

.card-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-500);
}

.card-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
}

.card-icon-btn {
  appearance: none;
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--sage-500);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  line-height: 1;
}

.card-icon-btn:hover,
.card-icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--line);
  color: var(--sage-800);
  outline: none;
}

.card-icon-btn.is-on {
  color: var(--sage-800);
  background: color-mix(in srgb, var(--sage-500) 14%, transparent);
}

.card-actions,
.card-chip,
.btn-chip,
.card-action-btn,
.btn-icon-toggle,
.btn-open-primary {
  display: none;
}

.content-card.content-card-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.content-card-grid .card-body {
  padding: 0.7rem 0.75rem 0.85rem;
  gap: 0.25rem;
}

.content-card-grid .card-title {
  font-size: 0.92rem;
}

.content-card-grid .card-desc {
  font-size: 0.78rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sage-100);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-thumb-fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, var(--sage-100), rgba(255, 255, 255, 0.7));
}

.card-thumb-fallback span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sage-500);
}

.content-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.85rem;
  width: 100%;
  padding: 1.05rem 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.content-card.is-ready:hover,
.content-card.is-ready:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(47, 111, 94, 0.35);
  background: rgba(255, 255, 255, 0.88);
  outline: none;
}

.content-card.is-soon {
  opacity: 0.58;
  cursor: not-allowed;
}

.content-card.is-featured {
  background:
    linear-gradient(135deg, rgba(212, 237, 227, 0.65), rgba(255, 255, 255, 0.7));
  border-color: rgba(47, 111, 94, 0.28);
}

.card-icon {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sage-500);
  min-width: 1.85rem;
  line-height: 1.3;
  padding-top: 0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-icon .hi,
.card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.card-arrow {
  color: var(--sage-800);
  font-size: 1.2rem;
  padding-top: 0.15rem;
  align-self: center;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.card-kind {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-500);
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(47, 111, 94, 0.12);
  color: var(--sage-800);
  white-space: nowrap;
}

.card-badge.is-soon {
  background: rgba(90, 114, 105, 0.12);
  color: var(--muted);
}

.card-badge.is-new {
  background: rgba(232, 168, 124, 0.28);
  color: #8a4b22;
}

.card-badge.is-done {
  background: rgba(47, 111, 94, 0.18);
  color: var(--sage-950);
}

.card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--sage-950);
  line-height: 1.25;
}

.card-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.disclaimer {
  margin: 1.6rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Capítulo: shell em tela cheia (sem position:fixed) —— */
.reading-shell {
  position: fixed;
  top: var(--chrome-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background:
    ;
  /* Chrome já cobre safe-area-top; shell fica abaixo da top bar. */
  padding-bottom: var(--sab);
  padding-left: var(--sal);
  padding-right: var(--sar);
}

.read-rail {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--sage-50) 94%, #fff);
  border-bottom: 1px solid var(--line);
}

.read-rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  min-height: var(--read-rail-h);
  min-width: 0;
}

.read-rail-inner > .btn-back-inline {
  flex-shrink: 0;
}

.read-rail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.read-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.read-tools {
  display: none;
}

.read-menus {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.1rem 0;
  position: relative;
  z-index: 5;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.read-menus::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.read-menus > .menu-drop,
.read-menus > .menu-share-btn {
  flex-shrink: 0;
}

.menu-drop { position: relative; flex-shrink: 0; }

.menu-drop-btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sage-800);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}

.menu-drop-btn:hover,
.menu-drop-btn:focus-visible {
  background: #fff;
  border-color: color-mix(in srgb, var(--sage-500) 40%, var(--line));
  outline: none;
}

.menu-drop-btn[aria-expanded="true"] {
  background: var(--sage-800);
  border-color: var(--sage-800);
  color: #fff;
}

.menu-drop-btn.is-playing {
  background: color-mix(in srgb, var(--sage-800) 12%, #fff);
  border-color: var(--sage-800);
}

.menu-drop-btn.is-loading {
  opacity: 0.7;
}

.menu-drop-panel {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 11rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px rgba(26, 46, 40, 0.12);
  z-index: 80;
}

.menu-drop-panel[hidden] { display: none !important; }

.menu-drop-panel button {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  cursor: pointer;
}

.menu-drop-panel button:hover,
.menu-drop-panel button:focus-visible,
.menu-drop-panel button.is-active {
  background: color-mix(in srgb, var(--sage-500) 16%, transparent);
  color: var(--sage-950);
  outline: none;
}

.home-group { margin-bottom: 0.25rem; }

.theme-hint {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.drawer-themes { padding: 0.35rem 0.25rem; }

.site-header,
.top-bar,
.read-rail,
.about-top {
  background: color-mix(in srgb, var(--sage-50) 94%, #fff);
  border-bottom-color: var(--line);
}

.site-drawer {
  background: linear-gradient(180deg, var(--sage-50), var(--sand));
}

.content-card.is-featured,
.content-card.is-ready:focus-visible {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--sage-100) 75%, #fff),
    rgba(255, 255, 255, 0.8)
  );
  border-color: color-mix(in srgb, var(--sage-800) 30%, transparent);
}

.btn-primary.is-disabled,
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--muted);
}

.home-group.is-open .drawer-chevron {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.voice-pick-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.voice-pick-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sage-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.voice-pick {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sage-800);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  max-width: 7.5rem;
}

.about-top-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-back-inline {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sage-800);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.2rem 0;
  cursor: pointer;
  white-space: nowrap;
}

.btn-back-inline:hover,
.btn-back-inline:focus-visible {
  color: var(--sage-950);
  outline: none;
}

.read-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage-500);
  flex-wrap: nowrap;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .read-rail-actions .read-meta {
    display: none;
  }
}

@media (max-width: 360px) {
  .read-meta { display: none; }
  .btn-back-inline { font-size: 0.85rem; }
  .menu-drop-btn {
    font-size: 0.72rem;
    padding: 0.28rem 0.5rem;
  }
}

.read-sep { color: var(--sage-300); }

.btn-speak {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.55rem;
  background: rgba(255, 255, 255, 0.75);
  color: var(--sage-800);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.btn-speak:hover,
.btn-speak:focus-visible {
  background: #fff;
  border-color: rgba(47, 111, 94, 0.35);
  outline: none;
}

.btn-speak.is-playing {
  background: var(--sage-800);
  border-color: var(--sage-800);
  color: #f4fbf8;
}

.btn-speak.is-paused {
  background: rgba(47, 111, 94, 0.12);
}

.btn-speak.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.speak-icon {
  font-size: 0.65rem;
  width: 0.9rem;
  text-align: center;
}

.read-track {
  height: 3px;
  background: rgba(47, 111, 94, 0.12);
}

.read-track i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sage-500), var(--sage-800));
  transition: width 0.12s linear;
}

/* Área de conteúdo + sidebar */
.reading-main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}

.sec-sidebar {
  position: absolute;
  top: 12px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: fit-content;
  height: fit-content;
  max-height: calc(100% - 24px);
  padding: 0.45rem 0.32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  overflow-y: auto;
}

.chapter-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 1rem 3.6rem 1.5rem 1.1rem;
}

.sec-dot {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  position: relative;
}

.sec-dot i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(47, 111, 94, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.sec-dot span {
  font-size: 0.58rem;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1;
}

.sec-dot.is-done i {
  background: var(--sage-500);
}

.sec-dot.is-active i {
  background: var(--sage-800);
  transform: scale(1.35);
}

.sec-dot.is-active {
  color: var(--sage-950);
}

.sec-bookmark {
  display: none;
  position: absolute;
  right: -0.15rem;
  top: 0.1rem;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--peach);
}

.sec-dot.is-bookmark .sec-bookmark {
  display: block;
}

.sec-dot:hover i,
.sec-dot:focus-visible i {
  background: var(--sage-800);
  outline: none;
}

.chapter-top { padding-bottom: 0.5rem; }

.chapter-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-500);
  font-weight: 700;
}

.chapter-title {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.5vw, 2.15rem);
  font-weight: 700;
  color: var(--sage-950);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.chapter-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 1.35rem 0 1.6rem;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid var(--sage-300);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 0 14px 14px 0;
}

.toc-link {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  color: var(--sage-800);
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.15rem;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}

.toc-link span {
  font-family: var(--font-display);
  color: var(--sage-500);
  font-size: 0.85rem;
  min-width: 1.5rem;
}

.toc-link:hover,
.toc-link:focus-visible {
  color: var(--sage-950);
  background: rgba(47, 111, 94, 0.06);
  outline: none;
}

.chapter-body .sec {
  margin-bottom: 1.85rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 12px;
}

.chapter-body .sec:last-child { border-bottom: 0; }

.chapter-body h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sage-950);
  font-weight: 700;
}

.chapter-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: var(--sage-800);
}

.chapter-body p,
.chapter-body li {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}

.chapter-body p { margin: 0 0 0.85rem; }

.chapter-body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.chapter-body li { margin-bottom: 0.35rem; }

.callout {
  margin: 1rem 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(47, 111, 94, 0.08);
  border: 1px solid var(--line);
}

.callout.soft {
  background: rgba(232, 168, 124, 0.12);
  border-color: rgba(232, 168, 124, 0.28);
}

.callout.tip {
  background: rgba(47, 111, 94, 0.1);
  border-color: rgba(47, 111, 94, 0.28);
}

.callout.warning {
  background: rgba(180, 83, 9, 0.1);
  border-color: rgba(180, 83, 9, 0.28);
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--sage-950);
}

.callout p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pull-quote {
  margin: 1.1rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--sage-500);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--sage-950);
}

.pull-quote p { margin: 0; }

.pull-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-style: normal;
  color: var(--muted);
}

hr.hr-block {
  border: 0;
  margin: 1.35rem 0;
  height: 0;
}

hr.hr-solid { border-top: 2px solid rgba(47, 111, 94, 0.28); }
hr.hr-dashed { border-top: 2px dashed rgba(47, 111, 94, 0.4); }
hr.hr-dotted { border-top: 2px dotted rgba(47, 111, 94, 0.5); }

.spacer-sm { height: 0.75rem; }
.spacer-md { height: 1.5rem; }
.spacer-lg { height: 2.5rem; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.compare > div {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.compare ul {
  margin: 0;
  padding-left: 1.05rem;
}

.compare li { font-size: 0.92rem; }

.figure { margin: 1rem 0; }

.figure-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.figure figcaption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.figure-zoomable .figure-open {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  cursor: zoom-in;
  position: relative;
}

.figure-zoomable img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.figure-zoom-hint {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(30, 74, 62, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
}

.check-list {
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.75rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sage-500);
}

.chapter-foot { padding: 0.5rem 0 1rem; }

.btn-primary {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  background: var(--sage-800);
  color: #f4fbf8;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--sage-950);
  outline: none;
}

.btn-primary:active { transform: scale(0.99); }

/* —— Sobre mim —— */
.about-shell {
  position: fixed;
  top: var(--chrome-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background:
    ;
  padding-bottom: var(--sab);
  padding-left: var(--sal);
  padding-right: var(--sar);
}

.about-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.5rem 1rem;
  min-height: var(--read-rail-h);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--sage-50) 94%, #fff);
}

.about-top .read-rail-actions {
  flex: 0 1 auto;
}

.about-menus {
  margin: 0;
  padding: 0;
}

.about-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 1.25rem 1.15rem 1.5rem;
}

.about-hero {
  text-align: center;
  padding: 0.5rem 0 1.4rem;
}

.about-avatar {
  width: 132px;
  height: 132px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(47, 111, 94, 0.22);
  animation: floatIn 0.7s ease both;
}

.about-avatar-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage-500);
}

.about-name {
  margin: 0.35rem 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.5vw, 2.2rem);
  font-weight: 700;
  color: var(--sage-950);
  letter-spacing: -0.02em;
}

.about-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.about-block h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--sage-950);
}

.about-block p {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
}

.about-block p:last-child { margin-bottom: 0; }

.about-timeline {
  margin: 0;
  padding-left: 1.15rem;
}

.about-timeline li {
  margin-bottom: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink);
}

.about-timeline strong {
  color: var(--sage-800);
}

/* —— Posts / Atualizações —— */
.posts-shell,
.post-shell {
  position: fixed;
  top: var(--chrome-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(700px 380px at 10% -10%, var(--bg-a) 0%, transparent 55%),
    linear-gradient(165deg, var(--bg-c), var(--sand));
  padding-bottom: var(--sab);
  padding-left: var(--sal);
  padding-right: var(--sar);
}

.post-shell .reading-main {
  flex: 1;
  min-height: 0;
}

.posts-scroll,
.post-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  /* padding: 0.55rem 3.6rem 1.25rem 1.15rem; */
  padding: calc(12px + var(--sat)) calc(18px + var(--sar)) calc(24px + var(--sab)) calc(18px + var(--sal));
}

.content-index {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin: 1.15rem 0 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sage-100) 55%, #fff);
  border: 1px solid var(--line);
}

.content-index-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-500);
}

.content-index-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--sage-950);
  line-height: 1.25;
}

/* No corpo do post o índice vira seção — marcador original some no parse */
.post-body .content-index {
  display: none;
}

/* ——— Diário (premium / teste) ——— */
.diary-shell.site-page,
.diary-shell {
  position: fixed;
  top: var(--chrome-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--sab);
  padding-left: var(--sal);
  padding-right: var(--sar);
  background:
    radial-gradient(520px 280px at 100% 0%, color-mix(in srgb, var(--sage-100) 80%, transparent), transparent 60%),
    linear-gradient(165deg, var(--sage-50), var(--sand) 52%, var(--bg-c));
}

.diary-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 0.55rem 1.15rem 1.6rem;
}

.diary-hero {
  margin-bottom: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.diary-dashboard {
  margin-bottom: 1.35rem;
}

.diary-dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.diary-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.diary-share-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  width: auto;
  min-width: 0;
}

.diary-share-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.diary-dash-greet {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--sage-950);
  line-height: 1.15;
}

.diary-dash-date {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.diary-date-field--compact {
  margin-top: 0;
  min-width: 9.5rem;
}

.diary-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.diary-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.55rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--sage-50) 55%, #fff));
  text-align: center;
}

.diary-stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sage-950);
  line-height: 1;
}

.diary-stat span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.diary-stat-ico {
  display: grid;
  place-items: center;
  color: var(--sage-500);
  margin-bottom: 0.15rem;
}

.diary-stat-ico svg {
  width: 1.15rem;
  height: 1.15rem;
}

.diary-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.1rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-950);
}

.diary-section-title svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--sage-500);
}

.diary-section-title--sm {
  font-size: 1rem;
  margin-top: 1rem;
}

.diary-cal {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.diary-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.diary-cal-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--sage-950);
  text-transform: capitalize;
}

.diary-cal-title svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--sage-500);
}

.diary-cal-nav {
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--sage-800);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.diary-cal-nav svg {
  width: 1.1rem;
  height: 1.1rem;
}

.diary-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.35rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.diary-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.diary-cal-empty {
  min-height: 2.5rem;
}

.diary-cal-day {
  appearance: none;
  position: relative;
  min-height: 2.55rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sage-50) 45%, #fff);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  padding: 0.25rem 0.1rem;
}

.diary-cal-day strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.diary-cal-day em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--sage-800);
}

.diary-cal-day.has-events {
  border-color: color-mix(in srgb, var(--sage-500) 35%, var(--line));
}

.diary-cal-day.is-today {
  box-shadow: inset 0 0 0 1px var(--sage-500);
}

.diary-cal-day.is-selected {
  background: var(--sage-800);
  color: #fff;
  border-color: var(--sage-800);
}

.diary-cal-day.is-selected em {
  color: color-mix(in srgb, #fff 85%, var(--sage-100));
}

.diary-cal-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.diary-day-panel {
  margin-bottom: 0.5rem;
}

.diary-day-count {
  margin: -0.35rem 0 0.65rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
}

.diary-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  align-items: end;
  min-height: 7.5rem;
  padding: 0.75rem 0.5rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--sage-50) 40%, #fff);
}

.diary-chart-bar {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  height: 100%;
  min-height: 6.5rem;
  justify-content: flex-end;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
}

.diary-chart-col {
  width: 70%;
  max-width: 1.6rem;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--sage-500), var(--sage-800));
  min-height: 8px;
}

.diary-chart-bar em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--sage-800);
}

.diary-chart-bar span {
  font-size: 0.62rem;
  font-weight: 700;
}

.diary-type-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.diary-type-bar-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.84rem;
}

.diary-type-bar-ico {
  color: var(--sage-500);
  display: grid;
  place-items: center;
}

.diary-type-bar-ico svg {
  width: 1rem;
  height: 1rem;
}

.diary-type-bar-label {
  font-weight: 700;
  color: var(--sage-950);
  min-width: 4.5rem;
}

.diary-type-bar-track {
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sage-100) 80%, #fff);
  overflow: hidden;
}

.diary-type-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sage-800);
}

.diary-report {
  margin: 1rem 0;
}

.diary-report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.diary-report-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.diary-report-ico {
  color: var(--sage-500);
  margin-bottom: 0.15rem;
}

.diary-report-ico svg {
  width: 1.2rem;
  height: 1.2rem;
}

.diary-report-card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sage-950);
  line-height: 1;
}

.diary-report-card span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.diary-tips {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.85rem 0.75rem 1.35rem;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--sage-50) 55%, #fff);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}

.diary-date-hidden-sync {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.diary-dash-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.diary-dash-type {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.diary-dash-type-ico {
  grid-row: 1 / span 2;
  color: var(--sage-500);
  display: grid;
  place-items: center;
}

.diary-dash-type-ico svg {
  width: 1.25rem;
  height: 1.25rem;
}

.diary-dash-type:hover,
.diary-dash-type:focus-visible {
  border-color: color-mix(in srgb, var(--sage-500) 40%, var(--line));
  outline: none;
}

.diary-dash-type strong {
  font-size: 0.92rem;
  color: var(--sage-950);
}

.diary-dash-type em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
}

.diary-dash-recent {
  margin-top: 0.35rem;
}

.diary-browse {
  margin-top: 0.25rem;
}

.diary-browse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.diary-browse-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--sage-950);
}

.diary-browse-head .diary-browse-title {
  margin: 0;
}

.diary-view-toggle {
  display: inline-flex;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.diary-view-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.diary-view-btn.is-on {
  color: #fff;
  background: var(--sage-800);
}

.diary-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin-bottom: 0.55rem;
  scrollbar-width: thin;
}

.diary-tab {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sage-800);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  white-space: nowrap;
}

.diary-tab.is-on {
  color: #fff;
  background: var(--sage-800);
  border-color: var(--sage-800);
}

.diary-search-field {
  display: block;
  margin-bottom: 0.75rem;
}

.diary-search-field input {
  width: 100%;
  font: inherit;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.diary-search-field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--sage-500) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage-300) 30%, transparent);
}

.diary-chips-label {
  width: 100%;
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.diary-pill {
  display: inline-flex;
  margin-top: 0.15rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sage-100) 80%, #fff);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.diary-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.diary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.diary-table th,
.diary-table td {
  padding: 0.65rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.diary-table th {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: color-mix(in srgb, var(--sage-50) 70%, #fff);
}

.diary-table tbody tr {
  cursor: pointer;
}

.diary-table tbody tr:hover,
.diary-table tbody tr:focus-visible {
  background: color-mix(in srgb, var(--sage-50) 55%, #fff);
  outline: none;
}

.diary-table-thumb {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.diary-detail {
  margin: 1rem 0;
}

.diary-detail-panel {
  position: relative;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--sage-950) 8%, transparent);
}

.diary-detail-close {
  appearance: none;
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.diary-detail-meta {
  margin: 0 1.5rem 0.35rem 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-800);
}

.diary-detail-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--sage-950);
}

.diary-detail-dl {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.diary-detail-dl > div {
  display: grid;
  gap: 0.1rem;
}

.diary-detail-dl dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.diary-detail-dl dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  white-space: pre-wrap;
}

.diary-detail-photo {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  margin-top: 0.85rem;
  border-radius: 12px;
  background: #111;
}

.diary-empty--soft {
  margin-top: 0.25rem;
}

@media (max-width: 420px) {
  .diary-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .diary-dash-hero {
    flex-direction: column;
    align-items: stretch;
  }
}

.diary-date-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.diary-date-field input[type="date"] {
  appearance: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sage-950);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--sage-800) 6%, transparent);
}

.diary-date-field input[type="date"]:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--sage-500) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage-300) 35%, transparent);
}

.diary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.diary-chip {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sage-800);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.diary-chip:hover,
.diary-chip:focus-visible {
  border-color: color-mix(in srgb, var(--sage-500) 45%, var(--line));
  outline: none;
}

.diary-chip.is-on {
  color: #fff;
  background: var(--sage-800);
  border-color: var(--sage-800);
}

.diary-form-host {
  margin-bottom: 1.15rem;
}

.diary-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--sage-950) 6%, transparent);
}

.diary-form-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sage-950);
}

.diary-form-lead {
  margin: -0.35rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.diary-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.diary-field-hint {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.diary-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.diary-form input,
.diary-form textarea,
.diary-form select {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  background: #fff;
}

.diary-form input:focus,
.diary-form textarea:focus,
.diary-form select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--sage-500) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage-300) 30%, transparent);
}

.diary-form input[type="range"] {
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--sage-800);
}

.diary-range-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sage-800);
}

.diary-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.diary-fieldset {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--sage-50) 55%, #fff);
}

.diary-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sage-800);
}

.diary-choice-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
}

.diary-choice-row.wrap {
  flex-wrap: wrap;
}

.diary-choice {
  appearance: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.diary-choice strong {
  font-size: 0.88rem;
  color: var(--sage-950);
}

.diary-choice em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.25;
}

.diary-choice-sm {
  flex: 0 1 auto;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
}

.diary-choice.is-on {
  border-color: var(--sage-800);
  background: color-mix(in srgb, var(--sage-100) 70%, #fff);
  box-shadow: inset 0 0 0 1px var(--sage-800);
}

.diary-bristol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}

.diary-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.55rem;
}

.diary-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

.diary-check-inline {
  margin-top: 0.15rem;
}

.diary-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--sage-800);
}

.diary-photo-field {
  padding-top: 0.15rem;
}

.diary-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.diary-photo-pick {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--sage-500) 45%, var(--line));
  background: color-mix(in srgb, var(--sage-50) 70%, #fff);
  color: var(--sage-800) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.diary-photo-preview {
  margin-top: 0.55rem;
  display: grid;
  gap: 0.35rem;
}

.diary-photo-preview img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #111;
}

.diary-photo-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.diary-colon-map {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  touch-action: manipulation;
}

.diary-colon-map img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.diary-colon-hotspots {
  position: absolute;
  inset: 0;
}

.diary-colon-hotspot {
  appearance: none;
  position: absolute;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(47, 111, 94, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.diary-colon-hotspot.is-on {
  background: rgba(232, 88, 88, 0.85);
  border-color: #fff;
  box-shadow:
    0 0 0 2px rgba(180, 35, 24, 0.55),
    0 0 12px rgba(232, 88, 88, 0.65);
}

.diary-colon-selected {
  margin: 0;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--sage-800);
}

.diary-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.diary-btn {
  width: auto;
  min-width: 7.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}

.diary-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.diary-empty {
  margin: 0.5rem 0 0;
  padding: 1.1rem 1rem;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: color-mix(in srgb, #fff 70%, var(--sage-50));
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.diary-card {
  position: relative;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.diary-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.diary-type {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-500);
}

.diary-when {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.diary-card strong {
  display: block;
  font-size: 1.02rem;
  color: var(--sage-950);
  margin-bottom: 0.25rem;
}

.diary-card-meta {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.diary-intensity {
  margin: 0.15rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.diary-intensity em {
  font-style: normal;
  font-weight: 800;
  color: var(--sage-800);
}

.diary-note {
  margin: 0.35rem 0 0;
  color: var(--ink);
  line-height: 1.45;
  white-space: pre-wrap;
}

.diary-card-photo {
  appearance: none;
  display: block;
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.diary-card-photo img {
  display: block;
  max-width: 100%;
  max-height: 140px;
  border-radius: 10px;
  object-fit: cover;
}

.diary-del {
  appearance: none;
  margin-top: 0.65rem;
  border: 0;
  background: transparent;
  color: #b42318;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.diary-del:hover,
.diary-del:focus-visible {
  text-decoration: underline;
  outline: none;
}

.diary-foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.diary-privacy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 420px) {
  .diary-form-grid,
  .diary-checks {
    grid-template-columns: 1fr;
  }
}

.posts-hero { padding: 0 0 0.65rem; }

.posts-title {
  margin: 0.35rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.5vw, 2.2rem);
  color: var(--sage-950);
}

.posts-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.post-card {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.62);
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.post-card.has-thumb {
  padding: 0;
  overflow: hidden;
}

.post-card.is-pinned {
  border-color: rgba(47, 111, 94, 0.35);
  background: color-mix(in srgb, var(--sage-50) 55%, rgba(255, 255, 255, 0.9));
}

.post-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sage-100);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-pinned {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--sage-800);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.post-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1.05rem 1rem;
}

.post-card:hover,
.post-card:focus-visible {
  border-color: rgba(47, 111, 94, 0.35);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
}

.post-card-meta {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 700;
}

.post-cat {
  color: var(--sage-800);
  background: rgba(47, 111, 94, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.post-date { color: var(--muted); font-weight: 600; }

.post-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-950);
  line-height: 1.25;
}

.post-card-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}

.post-card-foot {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sage-800);
}

.posts-empty { color: var(--muted); }

.post-article { padding-top: 0.35rem; }

.post-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.post-h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5vw, 2rem);
  color: var(--sage-950);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.post-excerpt-lead {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.post-body h2 {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--sage-950);
}

.post-body p,
.post-deck {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.1rem 0 0.45rem;
  color: var(--sage-950);
}

.post-body ul,
.post-body ol {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.post-body li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.post-source {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.post-source a {
  color: var(--sage-800);
  font-weight: 700;
}

@media (max-width: 380px) {
  .compare { grid-template-columns: 1fr; }
  .sec-dot span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Glossário / bulário —— */
.lexicon-shell,
.lexicon-entry-shell {
  position: fixed;
  top: var(--chrome-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--sab);
  padding-left: var(--sal);
  padding-right: var(--sar);
  background: linear-gradient(165deg, var(--sage-50), var(--sand) 55%, var(--bg-c));
}

.lexicon-scroll,
.lexicon-entry-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 0.55rem 1.15rem 1.25rem;
}

.lexicon-top-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-500);
}

.lexicon-hero {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.lexicon-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-500);
}

.lexicon-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.15rem);
  font-weight: 700;
  color: var(--sage-950);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lexicon-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lexicon-search-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage-500);
  margin-bottom: 0.35rem;
}

.lexicon-search {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

.lexicon-search:focus {
  outline: 2px solid color-mix(in srgb, var(--sage-500) 45%, transparent);
  outline-offset: 1px;
}

.lexicon-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}

.lexicon-cat-btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--sage-800);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.lexicon-cat-btn.is-active {
  background: var(--sage-800);
  border-color: var(--sage-800);
  color: #fff;
}

.lexicon-az {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0 0 1.1rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.lexicon-az-btn {
  appearance: none;
  min-width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sage-800);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.lexicon-az-btn.is-active {
  background: var(--sage-800);
  color: #fff;
}

.lexicon-az-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.lexicon-letter-group { margin-bottom: 1.15rem; }

.lexicon-letter-heading {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sage-950);
  border-bottom: 2px solid color-mix(in srgb, var(--sage-500) 35%, transparent);
  padding-bottom: 0.25rem;
}

.lexicon-letter-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.lexicon-item {
  appearance: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: start;
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.lexicon-item:hover,
.lexicon-item:focus-visible {
  background: #fff;
  border-color: color-mix(in srgb, var(--sage-500) 40%, var(--line));
  outline: none;
}

.lexicon-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.lexicon-item-main strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--sage-950);
  line-height: 1.25;
}

.lexicon-item-summary {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lexicon-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.lexicon-item-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sage-500);
  text-align: right;
  max-width: 6.5rem;
}

.lexicon-disclaimer {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.lexicon-aka {
  margin: -0.2rem 0 0.75rem;
  font-size: 0.88rem;
  color: var(--sage-500);
  line-height: 1.4;
}

.lexicon-related,
.lexicon-sources {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.lexicon-related h2,
.lexicon-sources h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-950);
}

.lexicon-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lexicon-related-chip {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sage-800);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.lexicon-related-chip:hover,
.lexicon-related-chip:focus-visible {
  background: var(--sage-800);
  border-color: var(--sage-800);
  color: #fff;
  outline: none;
}

.lexicon-sources ul {
  margin: 0 0 0.65rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.lexicon-edu-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.lexicon-ncbi {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--sage-600);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 10px 10px 0;
}

.lexicon-ncbi p {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.lexicon-ncbi a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sage-800);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lexicon-sources a {
  color: var(--sage-800);
  word-break: break-all;
}

.blog-lexicon-card {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sage-100) 55%, #fff), rgba(255, 255, 255, 0.92));
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.blog-lexicon-card:hover,
.blog-lexicon-card:focus-visible {
  border-color: color-mix(in srgb, var(--sage-500) 40%, var(--line));
  outline: none;
}

.blog-lexicon-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sage-500);
  min-width: 2rem;
}

.blog-lexicon-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.blog-lexicon-body strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--sage-950);
}

.blog-lexicon-body span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Visualizador de imagem —— */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: rgba(18, 32, 28, 0.96);
  padding-top: var(--sat);
  padding-bottom: var(--sab);
}

.img-viewer[hidden] { display: none !important; }

body.img-viewer-open {
  overflow: hidden;
}

.img-viewer-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.img-viewer-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e8f4ef;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
}

.img-viewer-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.img-viewer-btn {
  appearance: none;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.img-viewer-pct {
  min-width: 3.2rem;
  text-align: center;
  color: #cfe8dc;
  font-size: 0.8rem;
  font-weight: 700;
}

.img-viewer-stage {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
}

.img-viewer-stage:active {
  cursor: grabbing;
}

.img-viewer-img {
  max-width: 96%;
  max-height: 92%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 520px) {
  .blog-soon-grid {
    grid-template-columns: 1fr;
  }

  .blog-row-hit {
    grid-template-columns: 4.6rem 1fr;
    gap: 0.7rem;
  }

  .blog-row-thumb {
    width: 4.6rem;
  }
}

/* —— Modal de confirmação —— */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.app-modal[hidden] {
  display: none !important;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 42, 36, 0.45);
  backdrop-filter: blur(2px);
}

.app-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 22rem);
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--sage-50) 92%, #fff);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--sage-950) 18%, transparent);
}

.app-modal-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-950);
}

.app-modal-msg {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.app-modal-danger {
  background: #b42318;
  border-color: #b42318;
}

.app-modal-danger:hover,
.app-modal-danger:focus-visible {
  background: #912018;
  border-color: #912018;
}

body.app-modal-open {
  overflow: hidden;
}

/* —— Compartilhar na barra de leitura —— */
.menu-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.menu-share-btn [data-icon] {
  width: 1rem;
  height: 1rem;
}

/* —— Diário: lista + novo registro —— */
.diary-browse-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.diary-new-btn {
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  white-space: nowrap;
}

.diary-form-shell .diary-chips {
  margin-top: 0.35rem;
}

.diary-form-shell .diary-date-field {
  margin: 0.5rem 0 1rem;
}

/* —— Diário: zoom em fotos (somente no detalhe) —— */
.diary-detail-photo-wrap {
  margin: 0.75rem 0 1rem;
  position: relative;
}

.diary-detail-photo-wrap .diary-photo-zoom {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  cursor: zoom-in;
  position: relative;
}

.diary-detail-photo-wrap .diary-photo-zoom img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  display: block;
  background: #111;
}

/* ——— Diário: segmentos (resumo / histórico / cadastro) ——— */
.diary-segments,
.med-segments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.2rem;
  margin: 0 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.diary-segment,
.med-segment {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.diary-segment.is-on,
.med-segment.is-on {
  color: #fff;
  background: var(--sage-800);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--sage-800) 28%, transparent);
}

.diary-action-bar {
  margin-bottom: 1rem;
}

.diary-action-bar .diary-new-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
}

.diary-panel-hint {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}

.diary-filter-card {
  padding: 0.9rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.diary-date-field--filter {
  margin-bottom: 0.65rem;
}

.diary-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.diary-filter-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.diary-history-count {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--sage-800);
}

.diary-dash-quick {
  margin: 0.85rem 0 0.35rem;
}

.diary-dash-quick-btn {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border: 1px dashed color-mix(in srgb, var(--sage-500) 35%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--sage-50) 65%, #fff);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.diary-dash-quick-ico svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--sage-500);
}

.diary-dash-quick-btn strong {
  display: block;
  font-size: 0.95rem;
  color: var(--sage-950);
}

.diary-dash-quick-btn em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.diary-dash-quick-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--sage-500);
}

.diary-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.diary-type-card {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.85rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.diary-type-card.is-on {
  border-color: var(--sage-800);
  background: color-mix(in srgb, var(--sage-50) 70%, #fff);
  box-shadow: inset 0 0 0 1px var(--sage-800);
}

.diary-type-card-ico {
  color: var(--sage-500);
  margin-bottom: 0.15rem;
}

.diary-type-card-ico svg {
  width: 1.25rem;
  height: 1.25rem;
}

.diary-type-card strong {
  font-size: 0.92rem;
  color: var(--sage-950);
}

.diary-type-card em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ——— Medicações (pastel / aquarela — foto inteira) ——— */
.med-shell.site-page,
.med-shell {
  position: fixed;
  top: var(--chrome-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: var(--med-fade, var(--sand));
}

body.is-medicine .med-shell {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.med-art-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.med-art-layer--soft .med-art-img--cover {
  filter: saturate(0.92) brightness(1.05);
  opacity: 0.5;
}

.med-art-img--cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.med-art-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.med-art-veil--strong {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--med-fade, var(--sand)) 45%, transparent) 0%,
    color-mix(in srgb, var(--med-fade, var(--sand)) 72%, transparent) 35%,
    var(--med-fade, var(--sand)) 100%
  );
}

/* Foto completa — proporção natural no topo (sem crop) */
.med-art-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--med-fade, var(--sand));
}

.med-art-stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--sat) + 2.75rem);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(20, 28, 36, 0.28) 0%,
    rgba(20, 28, 36, 0.08) 55%,
    transparent 100%
  );
}

html.med-period-morning .med-art-stage::before,
html.med-period-afternoon .med-art-stage::before {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 100%
  );
}

.med-art-block {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.med-art-block::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--sat) + 2.75rem);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(20, 28, 36, 0.28) 0%,
    rgba(20, 28, 36, 0.08) 55%,
    transparent 100%
  );
}

html.med-period-morning .med-art-block::before,
html.med-period-afternoon .med-art-block::before {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 100%
  );
}

.med-art-parallax {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  line-height: 0;
  transform: none !important;
}

.med-art-stage .med-art-img,
.med-art-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  vertical-align: top;
}

.med-art-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--med-fade, var(--sand)) 28%, transparent) 55%,
    var(--med-fade, var(--sand)) 100%
  );
}

.med-greeting-bar {
  position: absolute;
  left: 1.15rem;
  right: 1rem;
  top: calc(var(--sat) + 10.4rem);
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.med-cal-fab {
  appearance: none;
  pointer-events: auto;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 2.55rem;
  height: 2.55rem;
  margin: 0.15rem 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #2a3a36;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.72) 0%, transparent 58%),
    color-mix(in srgb, #fff 55%, rgba(210, 230, 220, 0.55));
  box-shadow: 0 6px 18px rgba(40, 48, 52, 0.12);
  cursor: pointer;
}

.med-cal-fab .btn-back-ico,
.med-cal-fab svg {
  width: 1.2rem;
  height: 1.2rem;
}

.med-greeting {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: auto;
  flex: 1 1 auto;
  min-width: 0;
  pointer-events: none;
  text-align: right;
}

.med-browse-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.85rem;
}

.med-browse-banner strong {
  display: block;
  font-size: 0.95rem;
}

.med-browse-banner em {
  display: block;
  margin-top: 0.1rem;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.med-greeting-hi {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.5vw, 1.95rem);
  font-weight: 700;
  color: #24343a;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
  line-height: 1.15;
}

.med-greeting-date {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: color-mix(in srgb, #3a4540 78%, #fff);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.85);
  text-transform: capitalize;
}

html.med-period-evening .med-greeting-hi {
  /* color: #f7f3ff; */
  text-shadow: 0 2px 14px rgba(12, 16, 28, 0.55);
}

html.med-period-evening .med-greeting-date {
  /* color: rgba(247, 243, 255, 0.88); */
  text-shadow: 0 2px 12px rgba(12, 16, 28, 0.5);
}

.med-fab-stack {
  position: absolute;
  top: calc(0.65rem + var(--sat));
  right: calc(0.65rem + var(--sar));
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
}

.med-back-fab,
.med-ambient-fab {
  appearance: none;
  position: relative;
  box-sizing: border-box;
  width: 2.45rem;
  height: 2.45rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: color-mix(in srgb, var(--sage-950) 78%, transparent);
  display: grid;
  place-items: center;
  place-content: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.28) 55%, rgba(255, 255, 255, 0.14) 100%);
  box-shadow: 0 4px 14px rgba(40, 52, 48, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  opacity: 0.88;
}

.med-back-fab {
  top: auto;
  right: auto;
  left: auto;
  z-index: 5;
}

.med-back-fab:hover,
.med-ambient-fab:hover,
.med-back-fab:focus-visible,
.med-ambient-fab:focus-visible {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.65);
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.med-back-fab::before,
.med-ambient-fab::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35) 0%, transparent 68%);
}

.med-back-fab::after,
.med-ambient-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(250, 246, 239, 0.28) 100%);
}

.med-back-fab:active,
.med-ambient-fab:active {
  transform: scale(0.95);
}

.med-ambient-fab.is-playing {
  opacity: 1;
  color: var(--sage-800);
  border-color: color-mix(in srgb, var(--sage-500) 28%, rgba(255, 255, 255, 0.5));
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.7) 0%, color-mix(in srgb, var(--sage-50) 45%, transparent) 100%);
}

.med-ambient-fab.is-muted {
  opacity: 0.78;
}

.med-back-fab .btn-back-ico,
.med-ambient-fab [data-med-ambient-icon] {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  line-height: 0;
  -webkit-mask-image: radial-gradient(circle at center, #000 40%, rgba(0, 0, 0, 0.5) 64%, transparent 88%);
  mask-image: radial-gradient(circle at center, #000 40%, rgba(0, 0, 0, 0.5) 64%, transparent 88%);
}

.med-back-fab svg,
.med-ambient-fab svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0 auto;
  opacity: 0.88;
}

.med-ambient-fab--inline {
  flex-shrink: 0;
}

html.med-period-evening .med-back-fab,
html.med-period-evening .med-ambient-fab {
  color: rgba(247, 243, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at 50% 40%, rgba(40, 36, 60, 0.35) 0%, rgba(20, 18, 36, 0.22) 100%);
}

html.med-period-evening .med-ambient-fab.is-playing {
  color: #efeaf8;
  background:
    radial-gradient(circle at 50% 40%, rgba(90, 78, 130, 0.45) 0%, rgba(40, 36, 60, 0.28) 100%);
}

.med-scroll {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 calc(1.1rem + var(--sab));
}

@keyframes medGlassRise {
  from {
    opacity: 0.45;
    transform: translate3d(0, 18%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Bottom sheet ancorado no footer (abaixo fica só a tab bar) */
.med-glass {
  position: absolute;
  z-index: 2;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0;
  width: auto;
  max-width: none;
  height: var(--med-sheet-h, 42%);
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #fff 90%, var(--sand)) 0%,
      color-mix(in srgb, var(--sand) 90%, #fff) 100%
    );
  border: 1px solid color-mix(in srgb, #fff 72%, var(--line));
  border-bottom: 0;
  box-shadow: 0 -10px 36px color-mix(in srgb, var(--sage-950) 10%, transparent);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.med-glass.is-sheet-anim {
  transition: height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.med-glass.is-dragging {
  transition: none;
  cursor: grabbing;
}

.med-glass.is-rising {
  animation: medGlassRise 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.med-sheet-handle {
  appearance: none;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: 100%;
  padding: 0.55rem 1rem 0.35rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.med-sheet-handle:active {
  cursor: grabbing;
}

.med-sheet-bar {
  width: 2.65rem;
  height: 0.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 42%, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.med-sheet-hint {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.med-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0.15rem 1.1rem 1.15rem;
}

.med-glass--form {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0;
  width: auto;
  max-width: none;
  height: var(--med-sheet-h, 72%);
  max-height: none;
  margin: 0;
  padding: 0;
  border-radius: 24px 24px 0 0;
  border-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: auto;
}

.med-glass--form .med-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.15rem 1.1rem 1.35rem;
}

.med-toolbar-add {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 0.8rem 1rem;
  margin: 0 0 0.85rem;
  background: linear-gradient(145deg, var(--sage-500), var(--sage-800));
  border: 0;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--sage-800) 22%, transparent);
}

.med-form-shell {
  background: var(--med-fade, var(--sand));
}

.med-art-stage--form {
  z-index: 0;
}

.med-form-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  padding: calc(0.55rem + var(--sat)) 1rem 0.35rem;
  width: 100%;
  box-sizing: border-box;
  pointer-events: none;
}

.med-form-bar .btn-back-inline,
.med-form-back,
.med-form-bar .med-ambient-fab {
  pointer-events: auto;
}

.med-form-bar .btn-back-inline,
.med-form-back {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.med-form-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sage-950);
}

.med-form-lead {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.med-surface {
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, #fff 70%, var(--line));
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94) 0%,
      color-mix(in srgb, var(--sand) 55%, #fff) 100%
    );
  box-shadow: 0 8px 24px color-mix(in srgb, var(--sage-950) 6%, transparent);
}

.med-progress-card {
  padding: 0.95rem 1rem 0.9rem;
  margin: 0 0 0.9rem;
}

.med-progress-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.med-progress-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--sage-100) 70%, #fff);
  color: var(--sage-800);
  font-size: 1rem;
  font-weight: 800;
}

.med-progress-head strong {
  display: block;
  font-size: 0.95rem;
  color: var(--sage-950);
}

.med-progress-head em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.med-progress-pct {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sage-800);
}

.med-progress-bar {
  margin-top: 0.7rem;
  height: 0.42rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sage-100) 55%, #fff);
  overflow: hidden;
}

.med-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage-500), var(--sage-800));
}

.med-progress-tip {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.med-section {
  margin: 0 0 0.95rem;
}

.med-section--quiet {
  opacity: 0.88;
}

.med-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
}

.med-section-head h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--sage-950);
}

.med-time-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--sage-800);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.med-next-card {
  padding: 0.75rem 0.8rem 0.85rem;
}

.med-next-lead {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.med-next-lead strong {
  color: var(--sage-950);
  font-size: 0.95rem;
}

.med-next-list,
.med-later-list,
.med-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.med-next-actions {
  margin-top: 0.65rem;
}

.med-btn-solid {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--sage-500), var(--sage-800));
  cursor: pointer;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--sage-800) 18%, transparent);
}

.med-done-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.9rem 1rem;
  margin: 0 0 0.9rem;
}

.med-done-ico {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--sage-100) 80%, #fff);
  color: var(--sage-800);
  font-weight: 800;
}

.med-done-banner strong {
  display: block;
  color: var(--sage-950);
}

.med-done-banner em {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.med-dose-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: rgba(255, 255, 255, 0.78);
}

.med-dose-card--compact {
  padding: 0.6rem 0.7rem;
  grid-template-columns: auto 1fr auto auto;
}

.med-dose-card--due {
  border-color: color-mix(in srgb, var(--peach) 40%, var(--line));
  box-shadow: 0 4px 14px color-mix(in srgb, var(--peach) 12%, transparent);
}

.med-dose-card--taken {
  opacity: 0.78;
}

.med-dose-ico {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--sage-50) 80%, #fff);
  border: 1px solid color-mix(in srgb, var(--sage-300) 35%, transparent);
}

.med-dose-ico span {
  font-size: 1.15rem;
  line-height: 1;
}

.med-dose-body strong {
  display: block;
  font-size: 0.92rem;
  color: var(--sage-950);
}

.med-dose-meta {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.12rem;
}

.med-dose-chip {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--sage-800);
  white-space: nowrap;
}

.med-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.med-status-pill--done {
  background: color-mix(in srgb, var(--sage-100) 85%, #fff);
  color: var(--sage-800);
}

.med-dose-take {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fff;
  background: var(--sage-800);
  cursor: pointer;
  white-space: nowrap;
}

.med-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.med-card {
  overflow: hidden;
}

.med-card.is-paused {
  opacity: 0.72;
}

.med-card-hit {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.95rem 0.95rem 0.55rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.med-card-ico {
  width: 2.55rem;
  height: 2.55rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--sage-50) 75%, #fff);
  border: 1px solid color-mix(in srgb, var(--sage-300) 30%, transparent);
}

.med-card-ico span {
  font-size: 1.25rem;
  line-height: 1;
}

.med-card-body {
  min-width: 0;
}

.med-card-body strong {
  display: block;
  font-size: 1.02rem;
  color: var(--sage-950);
  line-height: 1.25;
}

.med-card-times {
  display: block;
  font-style: normal;
  font-size: 0.84rem;
  color: var(--sage-800);
  margin-top: 0.28rem;
  font-weight: 700;
  line-height: 1.35;
}

.med-card-dose,
.med-card-food,
.med-card-note {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-top: 0.28rem;
  color: var(--muted);
}

.med-card-food {
  color: color-mix(in srgb, var(--sage-800) 88%, var(--muted));
  font-weight: 700;
}

.med-card-note {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  color: color-mix(in srgb, var(--sage-950) 72%, var(--muted));
  white-space: normal;
}

.med-card-note--empty {
  color: var(--muted);
  font-weight: 600;
  opacity: 0.85;
}

.med-card-arrow {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
  margin-top: 0.35rem;
}

.med-card-arrow svg {
  width: 1rem;
  height: 1rem;
}

.med-card-actions {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.85rem 0.75rem;
}

.med-text-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sage-800);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
  border-radius: 8px;
}

.med-text-btn--danger {
  color: #b45309;
  margin-left: auto;
}

.med-empty {
  padding: 1rem;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.med-foot {
  margin-top: 1.25rem;
}

.med-privacy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.med-form label,
.med-form .med-field-label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--sage-950);
}

.med-form input,
.med-form select,
.med-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
}

.med-fieldset {
  margin: 0 0 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.med-fieldset legend {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.25rem;
}

.med-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.med-type-pick {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.med-type-pick.is-on {
  border-color: var(--sage-800);
  background: color-mix(in srgb, var(--sage-50) 75%, #fff);
}

.med-color-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.med-color-pick {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}

.med-color-pick.is-on {
  box-shadow: 0 0 0 2px var(--sage-800);
}

.med-tone-sage { --med-tone: #d4ede3; --med-tone-border: #7bc4b2; }
.med-tone-sky { --med-tone: #dbeafe; --med-tone-border: #93c5fd; }
.med-tone-peach { --med-tone: #ffedd5; --med-tone-border: #fdba74; }
.med-tone-lavender { --med-tone: #ede9fe; --med-tone-border: #c4b5fd; }
.med-tone-sand { --med-tone: #f5efe6; --med-tone-border: #d6cbb8; }

.med-tone-sage.med-color-pick { background: #d4ede3; }
.med-tone-sky.med-color-pick { background: #dbeafe; }
.med-tone-peach.med-color-pick { background: #ffedd5; }
.med-tone-lavender.med-color-pick { background: #ede9fe; }
.med-tone-sand.med-color-pick { background: #f5efe6; }

.med-dose-card[class*="med-tone-"],
.med-card[class*="med-tone-"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), var(--med-tone, #eef6f2));
  border-color: color-mix(in srgb, var(--med-tone-border, var(--sage-300)) 35%, var(--line));
}

.med-choice-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.med-choice {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
}

.med-choice.is-on {
  background: var(--sage-800);
  color: #fff;
  border-color: var(--sage-800);
}

.med-day-row {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.med-day-pick {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.med-day-pick.is-on {
  background: var(--sage-800);
  color: #fff;
  border-color: var(--sage-800);
}

.med-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.med-time-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.med-time-rm {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.med-check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600 !important;
}

.med-check input {
  width: auto;
  margin: 0;
}

.med-alert-box {
  background: color-mix(in srgb, var(--sage-50) 70%, #fff);
}

.med-switch {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 0.8rem;
  margin: 0.15rem 0 0.55rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  user-select: none;
}

.med-switch > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  clip: rect(0 0 0 0);
}

.med-switch-ui {
  position: relative;
  flex-shrink: 0;
  width: 2.85rem;
  height: 1.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 26%, #fff);
  border: 1px solid var(--line);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.med-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(26, 46, 40, 0.22);
  transition: transform 0.2s ease;
}

.med-switch > input:checked + .med-switch-ui {
  background: var(--sage-800);
  border-color: var(--sage-800);
}

.med-switch > input:checked + .med-switch-ui::after {
  transform: translateX(1.2rem);
}

.med-switch > input:focus-visible + .med-switch-ui {
  outline: 2px solid var(--sage-500);
  outline-offset: 2px;
}

.med-switch-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.med-switch-text strong {
  font-size: 0.92rem;
  color: var(--sage-950);
}

.med-switch-text em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

.med-alert-opts {
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px dashed color-mix(in srgb, var(--line) 80%, transparent);
}

.med-alert-opts .med-field-label {
  margin: 0.55rem 0 0.35rem;
}

.med-alert-opts .med-field-label:first-child {
  margin-top: 0;
}

.med-alert-hint {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.med-preview-btn {
  width: 100%;
  margin-top: 0.75rem;
  border-radius: 14px !important;
  font-weight: 800 !important;
}

.med-picker-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--sage-50) 55%, #fff) 100%);
  color: var(--sage-950);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.med-picker-btn::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--sage-800);
  border-bottom: 2px solid var(--sage-800);
  transform: rotate(45deg);
  opacity: 0.7;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.med-picker-btn.is-empty {
  color: var(--muted);
  font-weight: 600;
}

.med-time-row .med-picker-btn {
  flex: 1;
  margin-top: 0;
}

.med-form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.med-form-actions .med-btn {
  flex: 1;
}

/* Pickers aquarela */
.med-picker-host {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.med-picker-host[hidden] {
  display: none !important;
}

.med-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 48, 52, 0.38);
  backdrop-filter: blur(4px);
}

.med-picker-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: min(88vh, 640px);
  overflow: auto;
  margin: 0 auto;
  padding: 1rem 1.1rem calc(1.1rem + var(--sab));
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, #fff 92%, var(--sand)) 0%,
      color-mix(in srgb, var(--sand) 88%, #fff) 100%
    );
  border: 1px solid color-mix(in srgb, #fff 70%, var(--line));
  border-bottom: 0;
  box-shadow: 0 -16px 48px rgba(40, 48, 52, 0.18);
  animation: medPickerUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes medPickerUp {
  from {
    opacity: 0.5;
    transform: translate3d(0, 28%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.med-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.med-picker-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-950);
  text-align: center;
  flex: 1;
}

.med-picker-lead {
  margin: -0.25rem 0 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.med-picker-nav {
  appearance: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--sage-950);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.med-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.35rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.med-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.med-cal-empty {
  min-height: 2.55rem;
}

.med-cal-day {
  appearance: none;
  min-height: 2.55rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--sage-950);
  font: inherit;
  cursor: pointer;
}

.med-cal-day strong {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0 auto;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.med-cal-day.is-today strong {
  box-shadow: inset 0 0 0 1.5px var(--sage-500);
}

.med-cal-day.is-on strong {
  background: var(--sage-800);
  color: #fff;
  box-shadow: none;
}

.med-cal-day.has-meds em {
  display: block;
  margin-top: -0.1rem;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--sage-700);
  line-height: 1;
}

.med-cal-day.is-on.has-meds em {
  color: rgba(255, 255, 255, 0.88);
}

.med-cal-host {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.med-cal-host[hidden] {
  display: none !important;
}

.med-cal-sheet {
  max-height: min(92vh, 720px);
  animation: none;
}

.med-cal-detail-body {
  min-height: 4.5rem;
}

.med-cal-detail-body.is-loading {
  opacity: 0.55;
}

.med-cal-year-row {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  margin: 0 0 0.65rem;
}

.med-cal-year-btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--sage-900);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.med-cal-detail {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.med-cal-detail-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sage-950);
}

.med-cal-empty-day {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.med-cal-day-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  max-height: 9.5rem;
  overflow: auto;
}

.med-cal-day-item {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  background: color-mix(in srgb, #fff 70%, var(--sand));
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  font-size: 0.86rem;
}

.med-cal-day-item strong {
  font-variant-numeric: tabular-nums;
}

.med-cal-day-item em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
}

.med-cal-day-item.is-taken em {
  color: var(--sage-700);
}

.med-choice-list {
  display: grid;
  gap: 0.4rem;
  margin: 0.35rem 0 0.25rem;
}

.med-choice-opt {
  appearance: none;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, #fff 88%, var(--sand));
  color: var(--sage-950);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.med-choice-opt.is-on {
  border-color: color-mix(in srgb, var(--sage-700) 45%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--sage-100) 70%, #fff) 0%, #fff 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sage-600) 25%, transparent);
}

.med-picker-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1rem;
}

.med-picker-actions .med-btn {
  min-width: 5.5rem;
}

.med-time-wheel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.35rem 0 0.5rem;
}

.med-time-label {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.med-time-col {
  width: 4.6rem;
  height: 10.5rem;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  padding: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.med-time-opt {
  appearance: none;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 2.35rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--sage-950);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  scroll-snap-align: center;
}

.med-time-opt.is-on {
  background: var(--sage-800);
  color: #fff;
}

.med-time-sep {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sage-800);
  margin-top: 1.1rem;
}

.med-time-preview {
  margin: 0.25rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sage-950);
  letter-spacing: 0.04em;
}

/* ——— Alarme persistente ——— */
.med-alarm-shell {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: calc(0.75rem + var(--sat)) 0.85rem calc(0.85rem + var(--sab));
  box-sizing: border-box;
  background: var(--med-fade, var(--sand));
}

.med-alarm-shell[hidden] {
  display: none !important;
}

.med-alarm-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.med-alarm-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.med-alarm-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 24, 32, 0.18) 0%,
    color-mix(in srgb, var(--med-fade, var(--sand)) 35%, transparent) 42%,
    var(--med-fade, var(--sand)) 78%
  );
}

.med-alarm-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.96) 0%,
      color-mix(in srgb, var(--sand) 70%, #fff) 100%
    );
  border: 1px solid color-mix(in srgb, #fff 72%, var(--line));
  box-shadow: 0 18px 48px rgba(40, 48, 52, 0.18);
  backdrop-filter: blur(16px);
  animation: medGlassRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.med-alarm-greet {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sage-950);
}

.med-alarm-ico {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  background: color-mix(in srgb, var(--sage-100) 75%, #fff);
  border: 1px solid color-mix(in srgb, var(--sage-300) 35%, transparent);
}

.med-alarm-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.med-alarm-name {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sage-950);
  line-height: 1.2;
}

.med-alarm-time {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage-800);
  letter-spacing: 0.03em;
}

.med-alarm-food {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.med-alarm-nag {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #8a4b12;
  background: color-mix(in srgb, var(--peach) 35%, #fff);
  border: 1px solid color-mix(in srgb, var(--peach) 45%, var(--line));
}

.med-alarm-nag.is-on {
  animation: medNagPulse 1.4s ease-in-out infinite;
}

@keyframes medNagPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.med-alarm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
}

.med-alarm-btn {
  appearance: none;
  width: 100%;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.med-alarm-btn--primary {
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, var(--sage-500), var(--sage-800));
  box-shadow: 0 10px 22px color-mix(in srgb, var(--sage-800) 22%, transparent);
}

.med-alarm-btn--ghost {
  border: 1.5px solid var(--sage-800);
  color: var(--sage-800);
  background: rgba(255, 255, 255, 0.85);
}

.med-alarm-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--sage-800);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  padding: 0.45rem;
  cursor: pointer;
}

.med-alarm-privacy {
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

body.med-alarm-open .bottom-nav {
  pointer-events: none;
  opacity: 0.35;
}

.med-dose-card--taken {
  opacity: 1;
  background: color-mix(in srgb, var(--sage-50) 70%, #fff);
  border-color: color-mix(in srgb, var(--sage-500) 35%, var(--line));
}

/* Conta (botao no hero) */
.account-slot { display: flex; align-items: center; }
.account-slot .btn-header-icon { color: #2F6F5E; text-decoration: none; }
.account-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }
.account-menu { position: relative; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 6px); min-width: 160px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(30, 74, 62, 0.18); padding: 0.3rem; z-index: 20; }
.account-dropdown[hidden] { display: none; }
.account-dropdown a, .account-dropdown button { display: block; width: 100%; text-align: left; padding: 0.6rem 0.8rem; border: 0; border-radius: 8px; background: none; color: #1E4A3E; font: inherit; text-decoration: none; cursor: pointer; }
.account-dropdown a:hover, .account-dropdown button:hover { background: #E8F4EF; }
