/* Soft glass surfaces for the existing desktop interface. */
:root {
  --glass-ink: #253b33;
  --glass-muted: #596e65;
  --glass-line: rgba(255,255,255,.86);
  --glass-shadow: 0 18px 50px rgba(68,91,80,.10), 0 2px 8px rgba(68,91,80,.05);
}
body {
  color: var(--glass-ink);
  background: radial-gradient(ellipse at 20% 0%, #e1eee3 0, transparent 39%),
              radial-gradient(ellipse at 95% 8%, #e0ebf2 0, transparent 35%),
              radial-gradient(ellipse at 70% 85%, #e9f1e5 0, transparent 40%), #f4f5ef;
  background-attachment: fixed;
}
.app-shell { grid-template-columns: 252px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 18px; align-self: start;
  height: calc(100vh - 36px); overflow-y: auto; margin: 18px 0 18px 18px;
  padding: 28px 16px; border: 1px solid var(--glass-line); border-radius: 27px;
  background: rgba(249,252,249,.76); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(130%);
}
.brand { padding: 0 8px; }
.brand-mark { box-shadow: 0 6px 18px rgba(61,110,84,.18); }
.desktop-nav { gap: 5px; margin-top: 42px; }
.desktop-nav a { border: 1px solid transparent; border-radius: 14px; color: #50675d; transition: background .18s ease, transform .18s ease; }
.desktop-nav a:hover { background: rgba(255,255,255,.72); }
.desktop-nav a.active { background: rgba(208,230,213,.86); border-color: rgba(255,255,255,.85); color: #315b46; }
.sidebar-note { padding: 15px 8px 0; color: var(--glass-muted); }
main { padding: 34px clamp(24px, 4vw, 62px) 64px; }
.beta-banner { background: rgba(238,248,239,.78); border: 1px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 6px 20px rgba(65,98,76,.06); }
.page-header { gap: 20px; }
#home .page-header { padding: 17px 4px 12px; margin-bottom: 30px; }
#home .page-header h1 { letter-spacing: -.035em; }
#home .page-header .muted { color: var(--glass-muted); }
.header-badge { background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85); border-radius: 999px; padding: 9px 15px; color: #688476; box-shadow: 0 6px 18px rgba(68,91,80,.06); }
#home .section-heading { gap: 12px; }
#home .cards { gap: 18px; }
.card, .panel {
  background: rgba(255,255,255,.76); border: 1px solid var(--glass-line);
  border-radius: 23px; box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px) saturate(125%);
}
#home .card { position: relative; overflow: hidden; min-height: 212px; padding: 25px; }
#home .card:nth-child(1) { background: linear-gradient(145deg, rgba(235,247,236,.91), rgba(255,255,255,.76)); }
#home .card:nth-child(2) { background: linear-gradient(145deg, rgba(250,245,229,.93), rgba(255,255,255,.76)); }
#home .card:nth-child(3) { background: linear-gradient(145deg, rgba(246,239,231,.93), rgba(255,255,255,.76)); }
#home .card:nth-child(4) { background: linear-gradient(145deg, rgba(231,241,250,.93), rgba(255,255,255,.76)); }
#home .card-icon { width: 48px; height: 48px; border-radius: 16px; margin-bottom: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 5px 14px rgba(77,104,87,.08); }
#home .card h3 { font-size: 1.1rem; }
#home .card p { color: #596e65; }
#home .card .goal { color: #263f33; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
#home .lower-grid { margin-top: 22px; }
#home .lower-grid .panel { padding: 27px; }
.button { border-radius: 13px; box-shadow: 0 5px 14px rgba(61,110,84,.12); }
.button.secondary { background: rgba(255,255,255,.68); box-shadow: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #578a6d; outline-offset: 3px; }
@media (max-width: 950px) { .app-shell { grid-template-columns: 218px minmax(0, 1fr); } .sidebar { margin-left: 12px; } }
@media (max-width: 650px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  main { padding: 24px 18px 100px; }
  #home .page-header { padding: 8px 0 0; margin-bottom: 24px; }
  #home .cards { gap: 10px; }
  #home .card { padding: 18px; min-height: 175px; }
  #home .lower-grid .panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .desktop-nav a { transition: none; } }

/* Dashboard layout mirrors the approved concept while using only live values. */
#home .page-header { padding-top: 30px; margin-bottom: 20px; }
#home .page-header h1 { font-size: clamp(30px, 3.3vw, 46px); color: #172a22; }
#home .page-header .muted { font-size: 16px; }
#home > .section-heading { margin: 0 0 12px; }
#home > .section-heading .eyebrow { display: none; }
#home .card { display: grid; grid-template-columns: 55px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: 0 12px; align-items: center; min-height: 238px; }
#home .card-icon { grid-column: 1; grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 50%; margin: 0; font-size: 23px; }
#home .card h3 { grid-column: 2; grid-row: 1; margin: 0; }
#home .card > p:not(.goal) { grid-column: 2; grid-row: 2; margin: 0; }
#home .card .goal { grid-column: 1 / -1; grid-row: 3; min-height: 102px; padding: 19px 0 15px 100px; margin: 15px 0 0; display: flex; align-items: center; font-size: 15px; position: relative; }
#home .card .goal::before { content: ''; position: absolute; left: 0; width: 82px; height: 82px; border-radius: 50%; background: conic-gradient(var(--ring-color) var(--progress, 0%), rgba(99,125,111,.16) 0); mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); }
#home .card:nth-child(1) { --ring-color: #6d9f7b; }
#home .card:nth-child(2) { --ring-color: #d5a485; }
#home .card:nth-child(3) { --ring-color: #79a7d4; background: linear-gradient(145deg, rgba(230,242,251,.91), rgba(255,255,255,.78)); }
#home .card:nth-child(4) { --ring-color: #879bd9; background: linear-gradient(145deg, rgba(237,239,252,.93), rgba(255,255,255,.78)); }
#home .card > a { grid-column: 1 / -1; grid-row: 4; font-size: 13px; }
#home .lower-grid { grid-template-columns: 1fr 1.15fr; }
@media (max-width: 950px) { #home .lower-grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) {
  #home .page-header { padding-top: 8px; }
  #home .card { display: block; min-height: 175px; }
  #home .card-icon { margin-bottom: 12px; }
  #home .card .goal { min-height: 0; padding: 0; margin: 8px 0; display: block; }
  #home .card .goal::before { display: none; }
}

/* Calm landscape behind translucent surfaces. */
body {
  background: #eaf0e9 url("glass-landscape.svg") center center / cover fixed no-repeat;
}
.sidebar { background: rgba(245,250,247,.66); border-color: rgba(255,255,255,.9); }
.brand-mark { background: rgba(226,241,227,.75); border-radius: 50%; }
.desktop-nav a { min-height: 51px; font-size: 15px; }
.desktop-nav a.active { background: rgba(241,250,241,.78); }
#home .header-badge { display: none; }
#home > .section-heading { display: none; }
#home .page-header { padding-top: 34px; margin-bottom: 28px; }
#home .page-header h1 { font-size: clamp(32px,3.5vw,48px); line-height: 1.18; font-weight: 750; }
#home .page-header .eyebrow { font-size: 14px; letter-spacing: .02em; color: #556c64; }
#home .page-header .muted { margin-bottom: 0; letter-spacing: .04em; }
#home .cards { gap: 14px; }
#home .card { border-radius: 20px; box-shadow: 0 10px 35px rgba(72,100,88,.11), inset 0 1px rgba(255,255,255,.95); }
#home .card:nth-child(1) { background: rgba(239,249,237,.72); }
#home .card:nth-child(2) { background: rgba(253,244,237,.75); }
#home .card:nth-child(3) { background: rgba(235,246,255,.76); }
#home .card:nth-child(4) { background: rgba(239,240,255,.76); }
#home .card .goal { min-height: 104px; }
#home .lower-grid { gap: 14px; margin-top: 20px; }
#home .lower-grid .panel { min-height: 245px; background: rgba(251,252,250,.72); }
#home .lower-grid .eyebrow { opacity: .8; }
@media(max-width:650px) {
  body { background-attachment: scroll; }
  #home .page-header { padding-top: 8px; }
  #home .lower-grid .panel { min-height: 0; }
  #home .card .goal { min-height: 0; }
}
