/* Application shell and the daily workspace. */
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:220px;
  padding:34px 18px 22px;
  background:#f1f3eb;
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  z-index:10
}
.brand {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--ink);
  text-decoration:none;
  padding:0 10px;
  margin-bottom:45px
}
.brand .brand-mark {
  width:29px;
  height:34px
}
.brand-name {
  font:32px var(--serif);
  letter-spacing:-1.5px
}
.brand-name>span {
  color:#9b6d53
}
.nav {
  display:grid;
  gap:5px
}
.nav button {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:46px;
  padding:10px 14px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  text-align:left;
  font-size:14px;
  font-weight:500
}
.nav button:hover {
  background:#e5eadf
}
.nav button.active {
  background:#dfe8d8;
  color:var(--ink);
  font-weight:700
}
.nav .icon {
  width:19px;
  height:19px;
  flex-shrink:0
}
.nav-divider {
  height:1px;
  background:var(--border);
  margin:16px 12px
}
.sidebar-bottom {
  margin-top:auto;
  padding-top:30px
}
.sidebar-foot {
  display:flex;
  gap:10px;
  align-items:center;
  padding:15px 8px 0;
  border-top:1px solid var(--border)
}
.avatar {
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  background:#dfe5d6;
  color:var(--ink);
  border-radius:50%;
  font:19px var(--serif);
  flex-shrink:0
}
.sidebar-foot strong {
  display:block;
  font-size:14px;
  overflow-wrap:anywhere
}
.sidebar-foot small,.sidebar-storage {
  display:block;
  font-size:12px;
  color:var(--muted)
}
.sidebar-storage {
  padding:10px 8px 0
}
.workspace {
  margin-left:220px
}
.topbar {
  min-height:76px;
  padding:16px 46px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:var(--paper)
}
.shell-location {
  font-size:14px;
  color:var(--muted)
}
.content {
  width:100%;
  max-width:1320px;
  padding:40px 46px 26px;
  margin:0 auto
}
.content:focus {
  outline:none
}
.page-footer {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  border-top:1px solid var(--border);
  margin-top:42px;
  padding-top:20px;
  color:var(--muted);
  font-size:12px
}
.page-footer .text-btn {
  margin-left:auto;
  font-size:12px
}
.bottom-nav {
  display:none
}
.more-menu {
  width:min(420px,calc(100vw - 32px));
  border:1px solid var(--border);
  padding:22px;
  border-radius:16px;
  background:#fbfcf8;
  color:var(--ink)
}
.more-menu::backdrop {
  background:#142c2566
}
.more-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px
}
.more-heading h2 {
  font:30px var(--serif)
}
.more-menu .nav button {
  font-size:16px;
  min-height:52px
}
.today-heading {
  margin-bottom:32px
}
.today-date {
  font-size:14px;
  color:var(--muted);
  margin:0 0 9px
}
.today-heading h1 {
  font:56px/1.12 var(--serif);
  letter-spacing:-1.8px;
  margin:0 0 12px;
  color:var(--ink)
}
.title-dot {
  color:#a06f52
}
.today-heading>p:last-child {
  font-size:16px;
  color:var(--muted);
  margin:0
}
.today-grid {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);
  gap:26px;
  align-items:stretch
}
.today-practices {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:26px 26px 18px
}
.today-section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.today-section-head h2 {
  font:28px/1.2 var(--serif);
  color:var(--ink);
  margin:6px 0 0
}
.eyebrow {
  font-size:12px;
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--muted)
}
.today-section-head .text-btn {
  font-size:12px;
  white-space:nowrap;
  min-height:44px
}
.today-completion {
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin:25px 0 10px;
  font-size:12px;
  color:var(--muted)
}
.today-completion strong {
  color:var(--ink)
}
.today-progress {
  display:block;
  width:100%;
  height:5px;
  border:0;
  border-radius:5px;
  overflow:hidden;
  background:#e5eadd;
  accent-color:#527457
}
.today-progress::-webkit-progress-bar,.today-goal-progress progress::-webkit-progress-bar {
  background:#e5eadd;
  border-radius:10px
}
.today-progress::-webkit-progress-value,.today-goal-progress progress::-webkit-progress-value {
  background:#527457;
  border-radius:10px
}
.today-checklist .practice-row {
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:22px 0;
  border-bottom:1px solid #e3e7de
}
.today-checklist .practice-info {
  flex:1;
  min-width:0;
  padding-top:2px
}
.today-checklist .practice-info h3 {
  font-size:16px;
  line-height:1.4;
  margin:0 0 5px;
  font-weight:600;
  color:var(--ink);
  overflow-wrap:anywhere
}
.today-checklist .practice-info p {
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
  margin:0 0 8px;
  overflow-wrap:anywhere
}
.today-checklist .done h3 {
  text-decoration:line-through;
  color:var(--muted)
}
.today-checklist .mini-area {
  display:flex;
  gap:5px;
  align-items:center;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted)
}
.mini-area .icon {
  width:14px;
  height:14px
}
.today-all {
  margin-top:13px;
  font-size:12px;
  min-height:44px
}
.today-journal {
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:#edf0e5;
  display:flex;
  flex-direction:column
}
.journal-landscape {
  display:block;
  width:100%;
  height:178px;
  object-fit:cover;
  object-position:center 52%
}
.today-journal-copy {
  padding:25px 27px 24px;
  flex:1
}
.today-journal h2 {
  font:27px/1.28 var(--serif);
  margin:12px 0;
  color:var(--ink)
}
.today-journal p {
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  margin:12px 0 22px
}
.today-journal .button {
  font-size:14px;
  min-height:44px
}
.journal-saving {
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-top:14px
}
.today-goals {
  margin-top:38px
}
.today-goal-list {
  margin-top:19px;
  display:grid;
  gap:12px
}
.today-goal {
  display:flex;
  align-items:center;
  gap:18px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
  padding:20px 24px
}
.today-goal-icon {
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#eff2e8;
  color:#526b51;
  width:44px;
  height:44px;
  flex-shrink:0
}
.today-goal-body {
  flex:1;
  min-width:0
}
.today-goal-area {
  font-size:12px;
  color:var(--muted);
  margin:0 0 4px
}
.today-goal-title {
  background:none;
  border:0;
  padding:0;
  min-height:30px;
  text-align:left;
  color:var(--ink);
  font-size:16px;
  font-weight:600;
  line-height:1.4;
  overflow-wrap:anywhere
}
.today-goal-progress {
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:10px
}
.today-goal-progress progress {
  height:4px;
  width:130px;
  border:0;
  accent-color:#527457;
  flex-shrink:0
}
.today-goal-progress span {
  font-size:12px;
  color:var(--muted);
  overflow-wrap:anywhere
}
.today-compass {
  display:flex;
  gap:18px;
  align-items:center;
  background:#edf0e5;
  border-radius:10px;
  padding:24px;
  margin-top:24px
}
.today-compass>.icon {
  width:30px;
  height:30px;
  flex-shrink:0
}
.today-compass>div {
  flex:1
}
.today-compass h3 {
  font:23px var(--serif);
  margin:0 0 6px
}
.today-compass p {
  font-size:14px;
  color:var(--muted);
  line-height:1.5;
  margin:0
}
.today-empty {
  text-align:center;
  padding:32px 5px 18px
}
.empty-sprout {
  color:#527457;
  margin-bottom:12px
}
.empty-sprout .icon {
  width:36px;
  height:36px
}
.today-empty h3 {
  font:26px var(--serif);
  margin:0 0 10px
}
.today-empty p {
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  max-width:340px;
  margin:0 auto 20px
}
.today-goal-empty {
  display:flex;
  align-items:center;
  gap:24px;
  justify-content:space-between;
  border:1px dashed #bbc7b5;
  border-radius:10px;
  padding:24px;
  margin-top:18px
}
.today-goal-empty p {
  font-size:14px;
  color:var(--muted);
  line-height:1.6;
  margin:0
}
.entry-excerpt {
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden
}
@media(max-width:1100px) {
  .content {
    padding:32px 28px
  }
  .topbar {
    padding:16px 28px
  }
  .today-grid {
    gap:18px
  }
  .today-practices {
    padding:23px 20px 15px
  }
  .today-journal-copy {
    padding:23px
  }
  .today-section-head {
    align-items:flex-start;
    gap:8px
  }
  .today-section-head h2 {
    font-size:25px
  }
  .today-section-head .text-btn {
    white-space:normal
  }
  .today-journal h2 {
    font-size:25px
  }
  .today-goal-progress {
    flex-wrap:wrap;
    gap:6px 14px
  }
}
@media(max-width:850px) {
  .sidebar {
    display:none
  }
  .workspace {
    margin-left:0
  }
  .topbar {
    min-height:66px;
    padding:14px 24px
  }
  .content {
    padding:30px 24px calc(110px + env(safe-area-inset-bottom))
  }
  .bottom-nav {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    padding:7px 8px calc(7px + env(safe-area-inset-bottom));
    background:#fbfcf8f7;
    border-top:1px solid var(--border);
    z-index:20;
    backdrop-filter:blur(10px)
  }
  .bottom-nav button {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    min-height:54px;
    border:0;
    border-radius:8px;
    background:none;
    color:var(--muted);
    font-size:12px;
    line-height:1.2;
    padding:5px 1px
  }
  .bottom-nav button.active {
    background:#e5ecde;
    color:var(--ink);
    font-weight:700
  }
  .bottom-nav .icon {
    width:21px;
    height:21px
  }
  .more-menu {
    margin:auto auto calc(90px + env(safe-area-inset-bottom));
    max-height:calc(100dvh - 130px);
    overflow:auto
  }
  .today-heading h1 {
    font-size:48px
  }
  #toast {
    bottom:calc(90px + env(safe-area-inset-bottom));
    left:50%
  }
  .shell-location {
    display:none
  }
  .topbar {
    justify-content:flex-end
  }
  .today-compass {
    flex-wrap:wrap
  }
  .today-compass .button {
    margin-left:48px
  }
}
@media(max-width:650px) {
  .content {
    padding:28px 18px calc(100px + env(safe-area-inset-bottom))
  }
  .topbar {
    padding:12px 18px
  }
  .today-heading {
    margin-bottom:26px
  }
  .today-heading h1 {
    font-size:46px
  }
  .today-heading>p:last-child {
    font-size:14px
  }
  .today-grid {
    grid-template-columns:1fr;
    gap:22px
  }
  .today-practices {
    padding:23px 20px 15px
  }
  .today-section-head h2 {
    font-size:26px
  }
  .today-section-head .text-btn {
    font-size:12px
  }
  .today-completion {
    margin-top:22px
  }
  .today-journal {
    display:grid;
    grid-template-columns:1fr
  }
  .journal-landscape {
    height:170px
  }
  .today-journal-copy {
    padding:24px
  }
  .today-journal h2 {
    font-size:28px
  }
  .today-goals {
    margin-top:30px
  }
  .today-goal {
    padding:18px 15px;
    gap:12px
  }
  .today-goal-icon {
    width:38px;
    height:38px
  }
  .today-goal .icon-btn {
    align-self:flex-start;
    flex-shrink:0
  }
  .today-goal-progress progress {
    width:100%
  }
  .today-goal-progress {
    gap:8px
  }
  .today-goal-title {
    font-size:16px
  }
  .today-goal-empty {
    align-items:flex-start;
    flex-direction:column;
    gap:16px;
    padding:22px
  }
  .today-compass {
    padding:21px;
    gap:14px
  }
  .today-compass>div {
    min-width:180px
  }
  .today-compass .button {
    margin-left:0
  }
  .page-footer {
    flex-wrap:wrap;
    line-height:1.5;
    align-items:center;
    margin-top:30px
  }
  .page-footer .text-btn {
    margin-left:0
  }
  .today-checklist .practice-row {
    gap:12px
  }
  .today-checklist .practice-info p {
    font-size:14px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important
  }
}
.shell-brand {
  display:flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  font:20px var(--serif);
  color:var(--ink)
}
.today-heading .today-date {
  font-size:14px;
  margin-bottom:9px
}
.today-heading h1 {
  margin-bottom:0
}
.today-section-head h2 {
  margin-top:0
}
@media(max-width:850px) {
  .shell-brand {
    display:flex
  }
  .topbar {
    justify-content:space-between;
    gap:12px
  }
}
@media(max-width:650px) {
  .shell-brand {
    font-size:18px
  }
  .shell-brand .icon {
    display:none
  }
}
@media(max-width:380px) {
  .topbar {
    flex-wrap:wrap
  }
}
/* Final shell proportions and compact daily summary. */
.sidebar  {
  overflow-y: auto;
}
.brand  {
  flex-shrink: 0;
  white-space: nowrap;
  gap: 8px;
  padding: 0 8px;
}
.brand .brand-mark  {
  width: 27px;
  height: 32px;
  flex-shrink: 0;
}
.brand-name  {
  display: inline;
  font-size: 29px;
  letter-spacing: -1.3px;
  white-space: nowrap;
}
.brand-name > span  {
  display: inline;
}
.shell-brand  {
  display: none;
}
.topbar  {
  justify-content: flex-end;
}
.today-heading  {
  margin-bottom: 26px;
}
.today-checklist .practice-row  {
  padding: 14px 0;
  gap: 10px;
}
.checked .today-checklist .practice-info h3  {
  margin-bottom: 3px;
}
.today-checklist .practice-info p  {
  margin-bottom: 5px;
}
.today-completion  {
  margin-top: 20px;
}
.today-completion strong  {
  font-weight: 500;
}
.journal-landscape  {
  height: 200px;
}
.today-journal-copy  {
  padding: 23px 27px;
}
.today-journal h2  {
  margin-bottom: 23px;
}
.today-goal  {
  width: 100%;
  text-align: left;
  font-family: var(--sans);
}
.today-goal-body, .today-goal-area, .today-goal-title  {
  display: block;
}
.today-goal-title  {
  min-height: auto;
}
.today-goal-track  {
  display: block;
  width: 130px;
  height: 4px;
  border-radius: 5px;
  overflow: hidden;
  background: #e5eadd;
  flex-shrink: 0;
}
.today-goal-track > span  {
  display: block;
  height: 100%;
  background: #527457;
}
.today-goal > .icon  {
  flex-shrink: 0;
}
.page-footer  {
  border: 0;
  justify-content: flex-end;
}
@media (max-width: 850px)  {
  .shell-brand  {
    display: flex;
    white-space: nowrap;
  }
  .topbar  {
    justify-content: space-between;
  }
}
@media (max-width: 650px)  {
  .topbar  {
    flex-wrap: nowrap;
    padding: 12px 16px;
    gap: 10px;
  }
  .shell-brand  {
    font-size: 20px;
  }
  .today-checklist .practice-row  {
    padding: 16px 0;
  }
  .journal-landscape  {
    height: 180px;
  }
  .today-goal-track  {
    width: 100%;
  }
}
@media (max-width: 380px)  {
  .shell-brand  {
    font-size: 19px;
  }
}
.legal-links {
  display:flex;
  flex-wrap:wrap;
  gap:4px 16px;
  font-size:13px
}
.legal-links a {
  color:var(--muted);
  text-decoration:none
}
.legal-links a:hover {
  color:var(--green);
  text-decoration:underline
}
/* The wordmark's north star: placed before the "b", no width, bottom on the baseline (logo.mjs wordStar) */
.brand-star {
  display:inline-block;
  width:.3em;
  height:1.1em;
  margin-right:-.3em;
  vertical-align:baseline;
  overflow:visible
}

/* The top bar only carries the wordmark on narrow screens; wider screens show it in the sidebar. */
@media (min-width: 851px) {
  .topbar { display: none; }
}
