/* Shared by the browser app, Telegram and the sign-in page. */
@font-face {
  font-family: "Planner Mazzard";
  src: local("Mazzard H Regular"), local("Mazzard Regular"), local("Mazzard H");
  font-weight: 400;
}
@font-face {
  font-family: "Planner Mazzard";
  src: url("/fonts/MazzardM-SemiBold.ttf") format("truetype"), local("Mazzard M SemiBold"), local("Mazzard SemiBold");
  font-weight: 600;
}
@font-face {
  font-family: "Planner Mazzard";
  src: local("Mazzard H Bold"), local("Mazzard Bold");
  font-weight: 700;
}
:root {
  --color-primary: #D2F356;
  --color-primary-light: #E3F488;
  --color-primary-hover: var(--color-primary-light);
  --color-dark: #282923;
  --color-text: var(--color-dark);
  --color-background: #FBFBF7;
  --color-card: #FFFFFF;
  --color-text-secondary: #64655e;
  --field-surface: #f5f5f5;
  --radius-card: 26px;
  --radius-button: 999px;
  --radius-inset: 18px;
  --space-1: 8px;
  --space-2: 16px;
  --space-card: clamp(16px, 4vw, 24px);
  --shadow-card: 0 6px 24px rgb(40 41 35 / 7%);
  --shadow-inset-card: 0 3px 14px rgb(40 41 35 / 8%);
  --ui-font: "Planner Mazzard", Inter, system-ui, sans-serif;
  --bg: var(--color-background);
  --cream: var(--bg);
  --ink: var(--color-text);
  --text: var(--ink);
  --accent: var(--color-primary);
  --id-grad: var(--color-primary-light);
}
html:root, html body[class], html body, body .app .view[id],
html body .app, html body.tg-mini-app.tg-fullscreen .app,
html body.tg-mini-app .tg-fullscreen-header, #tg-top-shield,
html body .modal-overlay .modal-sheet, html body #consent-gate {
  background: var(--color-background) !important;
}
body, body :is(.view,.modal-sheet,main,dialog) :where(button,input,textarea,select,p,label,span,div,strong),
body :is(h1,h2,h3,.wk-title-lg,.block-head span,.progress-card-pct,.progress-ring-num,.focus-time) {
  font-family: var(--ui-font) !important;
}
body { color: var(--color-text); }
.app .view :is(h1,.progress-card-pct,.progress-ring-num,.focus-time) {font-weight: 700 !important;}
.app .view :is(h2,h3,.wk-title-lg,.block-head > span:first-child,.habit-card-title) {font-weight: 600 !important;}
.app .view :is(.card,.card-block,.wk-card,.tile,.stat,.task-card,.habit-card,.habit-stat-box,
  .pet-card,.challenge-card,.home-extra-sections,.week-cal-days),
body .modal-sheet :is(.account-card,.details-card,.tv-card,.ht-card),
body :is(.category-manager,.bingo-reward-modal,.browser-auth-dialog),
body main .welcome-tools {
  background: var(--color-card) !important;
  border-color: transparent !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-card) !important;
}
.app .view :is(.wk-card,.habit-card,.card-block) {padding: var(--space-card);}
.app .view :is(.progress-card,.day-level-card,.level-card,.profile-rank-card,.planb-entry-btn) {
  background: var(--color-primary-light) !important;
  color: var(--ink) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-card) !important;
}
body :is(.view,.modal-sheet) :is(button.primary,.primary-btn,.reward-primary,.bt-start,.habit-checkin-btn,.rest-add-btn),
body main .action {
  background: var(--color-dark) !important;
  color: var(--color-card) !important;
  border: 0 !important;
  border-radius: var(--radius-button) !important;
  box-shadow: none !important;
}
.app .view :is(.wk-draw-btn,.wg-deck-btn,.wk-ic-main,.brain-dump-add,.challenge-take-btn,.challenge-add-mini),
#view-today .card-block button.primary, #view-focus .focus-controls #focus-start-btn {
  background: var(--color-primary) !important;
  color: var(--ink) !important;
  border: 0 !important;
  border-radius: var(--radius-button) !important;
  box-shadow: none !important;
}
#view-focus .focus-controls #focus-start-btn {color: #000 !important;}
body :is(.view,.modal-sheet) button:focus-visible {outline: 2px solid var(--ink); outline-offset: 2px;}
body :is(.view,.modal-sheet) button:disabled {opacity: .52;}
.app .week-cards .wk-pill, .app .week-cards .wk-eyebrow, .app .block-count {
  background: var(--color-primary-light) !important;
  color: var(--ink) !important;
  border-radius: var(--radius-button);
}
#card-boss .wg-row, #timeline-list .tl-row:not(.divider-row,.marker,.rest-row) {
  background: var(--color-card) !important;
  border: 0 !important;
  border-radius: var(--radius-inset);
  box-shadow: var(--shadow-inset-card);
  padding: var(--space-2);
}
#card-boss .wg-list {gap: var(--space-2);}
#card-boss .bt-start, #habit-cards-list button.habit-checkin-btn {
  background: var(--color-dark) !important;
  color: var(--color-card) !important;
  box-shadow: none !important;
}
#view-today .cal-day.selected .num {
  background: var(--color-primary) !important;
  color: var(--ink) !important;
  border-color: transparent !important;
}
#timeline-list .tl-row:has(.tl-check) {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  grid-template-rows: auto 1fr;
  column-gap: var(--space-2);
  row-gap: 4px;
}
#timeline-list .tl-row:has(.tl-check) > .tl-task {
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: var(--space-1);
}
#timeline-list .tl-row:has(.tl-check) > .tl-rail {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  align-self: stretch;
  justify-content: flex-start;
  min-height: 18px;
  margin: 0;
}
#timeline-list .tl-row:has(.tl-check) .tl-rail::before {content: none;}
#timeline-list .tl-row:has(.tl-check) .tl-line {
  display: block;
  inset-block: 4px 0;
  background: var(--task-color);
}
#timeline-list .tl-task > .tl-focus {
  flex: none;
  margin: 0;
  background: var(--color-dark);
  color: var(--color-primary);
}
#timeline-list .tl-body {flex: 1; min-width: 0; overflow-wrap: anywhere;}
#timeline-list .tl-title .category-current {display: block;}
#timeline-list .tl-title .category-dot {display: none;}
#timeline-list .tl-range, #timeline-list .tl-notes {color: var(--color-text-secondary);}
#habit-cards-list .habit-heatmap .hcell {border-radius: 50%; aspect-ratio: 1;}
body #reminder-details-modal :is(input:not([type=checkbox]),textarea,.ds-add,.details-chip) {
  box-sizing: border-box;
  max-width: 100%;
  background: var(--field-surface) !important;
  background-clip: padding-box !important;
}
body #reminder-details-modal .ds-add textarea {background: transparent !important;}
body #reminder-details-modal .details-chip.active {box-shadow: inset 0 0 0 2px var(--color-dark);}
@media (max-width: 420px) {
  #timeline-list .tl-row:not(.divider-row,.marker,.rest-row) {padding: 12px; column-gap: 10px;}
  #view-today .greet .profile-row > div:last-child {min-width: 0;}
  #view-today .greet-hi {overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
}

body #reminder-details-modal .details-date-time {
  background: transparent !important;
  min-width: 0;
}
.app .view :is(.manul-card,.archive-banner,.profile-bingo) {background: var(--color-primary-light) !important;}
.app .view :is(.wk-card-compact .wk-compact-top) {min-height: 36px;}
body #consent-gate-button.primary {
  background: var(--color-primary) !important;
  color: var(--ink) !important;
}
html body #subscription-gate, html body .details-footer {background: var(--color-background) !important;}
.home-rows .home-row, .home-rows :is(.hr-chev,.hr-ring b) {color: var(--color-text);}
.home-rows .hr-ring {
  background: conic-gradient(var(--color-primary) calc(var(--p, 0) * 1%), var(--color-primary-light) 0);
}
.home-rows .home-row.is-locked .hr-ring {background: var(--color-primary-light);}

/* Battle screen uses the shared dark surface and pale lime progress. */
body .bt-fight {
  background: #282923 !important;
}
body .bt-f-bar i {
  background: #E3F488 !important;
}

/* Selected duration chips use white text on the dark surface. */
body .tf-sheet .tf-chip.on {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

@font-face {
  font-family: "Planner Mazzard";
  src: url("/fonts/MazzardH-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
.app .view :is(h2,h3,.wk-title-lg,.block-head > span:first-child,.habit-card-title),
body .modal-sheet :is(.tf-label,.tf-title,.bt-int-top,.bt-int-boss b) {
  font-family: "Planner Mazzard", Inter, system-ui, sans-serif !important;
  font-weight: 500 !important;
}

@font-face {
  font-family: "Planner Mazzard";
  src: url("/fonts/MazzardM-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
.app .view :is(h1,h2,h3,.wk-title-lg,.block-head > span:first-child,.habit-card-title,.progress-card-pct,.progress-ring-num,.focus-time),
body .modal-sheet :is(.tf-title,.bt-f-title) {
  font-family: "Planner Mazzard", Inter, system-ui, sans-serif !important;
  font-weight: 700 !important;
}

@font-face {
  font-family: "Planner Mazzard";
  src: url("/fonts/MazzardH-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
body, body :is(.view,.modal-sheet,main,dialog) :where(p,label,span,div,input,textarea,select,button) {
  font-family: "Planner Mazzard", Inter, system-ui, sans-serif !important;
}

/* Habit emoji badges use a clear center and thin gray outline. */
#habit-cards-list .habit-emoji-badge {
  background:transparent !important;
  border:1.5px solid #E5EAF3 !important;
  border-radius:50% !important;
  box-sizing:border-box;
}

#view-planb .planb-row {
  background: #FFFFFF !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: var(--shadow-card) !important;
}

/* Use Mazzard Medium consistently across every button, including nested views and sheets. */
html body button,
html body button *,
html body [role="button"],
html body [role="button"] * {
  font-family: "Planner Mazzard", Inter, system-ui, sans-serif !important;
  font-weight: 500 !important;
}

/* Normalize the rendered label itself because several controls wrap it in spans or icons. */
html body .app button,
html body .app button > *,
html body .app button :is(span,b,strong,i,svg),
html body .modal-sheet button,
html body .modal-sheet button > *,
html body .modal-sheet button :is(span,b,strong,i) {
  font-family: "Planner Mazzard", Inter, system-ui, sans-serif !important;
  font-weight: 500 !important;
  font-synthesis: none;
}

/* Mazzard Medium is a static 500-weight font. Keep every app button at that exact weight. */
html body .app button,
html body .app button *,
html body .modal-sheet button,
html body .modal-sheet button * {
  font-family: "Planner Mazzard", Inter, system-ui, sans-serif !important;
  font-weight: 500 !important;
  font-synthesis: none !important;
}

/* Match button weight rules with high-specificity component selectors. */
html body .app .view button,
html body .app .view button *,
html body .modal-sheet button,
html body .modal-sheet button * {
  font-family: "Planner Mazzard", Inter, system-ui, sans-serif !important;
  font-weight: 500 !important;
  font-synthesis: none !important;
}

/* Button labels use the supplied Mazzard Bold face throughout the app. */
html body .app .view button,
html body .app .view button *,
html body .modal-sheet button,
html body .modal-sheet button * {
  font-family: "Planner Mazzard", Inter, system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-synthesis: none !important;
}

/* Give primary actions clearer labels while preserving compact icon controls. */
html body .app .view :is(.primary,.primary-btn,.bt-start,.rest-add-btn,.wk-draw-btn,.wg-deck-btn,.wk-ic-main,.planb-entry-btn,.habit-checkin-btn,.brain-dump-add,.challenge-take-btn,.challenge-checkin-btn,.challenge-add-mini),
html body .modal-sheet :is(.tf-go,.tf-ghost,.bt-go,.bt-ghost) {
  font-size: 1.12em !important;
}
/* Shared surfaces and typography from the supplied design boards. */
:root {
  --color-text-secondary: #666665;
  --radius-card: 24px;
  --shadow-card: 0 5px 20px rgb(40 41 35 / 7%);
}
body .app .view[id] :is(.card,.card-block,.wk-card,.pet-card,.challenge-card,.habit-card,.tile,.stat,.planb-row,.brain-dump-item,.habit-stat-box),
body .modal-sheet :is(.account-card,.details-card,.ht-card,.tv-card,.modal-link-card) {
  background: var(--color-card) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-card) !important;
}
body .app .view[id] .block-head {color:var(--color-dark); margin-bottom:12px}
#view-today #timeline-count,
#timeline-list .tl-row:is(.marker,.divider-row) {display:none}
#timeline-list .tl-row:has(.tl-check) {
  position:relative;
  grid-template-columns:48px minmax(0,1fr);
  grid-template-rows:auto 1fr;
  gap:4px 10px;
  box-sizing:border-box;
  min-height:90px;
  margin-bottom:20px;
  padding:12px;
  box-shadow:0 3px 14px rgb(40 41 35 / 7%);
}
#timeline-list .tl-row:has(.tl-check) > .tl-time-col {
  grid-area:1/1; align-self:start; width:auto; text-align:center;
}
#timeline-list .tl-row:has(.tl-check) > .tl-rail {width:10px}
#timeline-list .tl-row:has(.tl-check) .tl-dot {width:6px;height:6px;box-shadow:none}
#timeline-list .tl-row:has(.tl-check) .tl-task {
  display:block; min-width:0; align-self:center;
  padding:24px 0 0;
}
#timeline-list .tl-row .tl-title .category-current {
  font-size:16px !important; font-weight:500 !important;
  white-space:normal; overflow-wrap:anywhere; hyphens:manual;
}
#timeline-list .tl-task:has(.tl-check) > :is(.tl-focus,.tl-check,.tl-del) {
  position:absolute; top:8px; width:24px; height:24px;
  box-sizing:border-box; margin:0; padding:0;
  display:grid;place-items:center; box-shadow:none;
}
#timeline-list .tl-task > .tl-focus {right:66px}
#timeline-list .tl-task > .tl-check {right:38px;border-radius:50%}
#timeline-list .tl-task:has(.tl-check) > .tl-del {right:8px}
#timeline-list .tl-task:has(.tl-check) {position:static}
#view-today .card-block:has(> #timeline-list) {
  background:transparent !important;box-shadow:none !important;
  display:grid;grid-template-columns:minmax(0,1fr);padding:0;
}
#view-today .card-block:has(> #timeline-list) > .block-head,
#view-today #timeline-list {background:white;padding:16px;margin:0}
#view-today .card-block:has(> #timeline-list) > .block-head {border-radius:24px 24px 0 0;padding-bottom:4px}
#view-today #timeline-list {border-radius:0 0 24px 24px;box-shadow:0 6px 12px rgb(40 41 35 / 5%)}
#view-today #timeline-list ~ button {width:calc(100% - 32px);justify-self:center}
#view-today #timeline-list ~ .rest-add-btn {background:var(--color-dark) !important;color:var(--color-primary-light) !important}
body, body .app .view, body .modal-sheet {font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;font-synthesis:none}
body .app .view button, body .app .view button *, body .modal-sheet button, body .modal-sheet button * {font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;font-weight:700 !important;font-synthesis:none !important}
body .app .view :is(h1,h2,h3,.wk-title-lg,.block-head > span:first-child,.habit-card-title), body .modal-sheet :is(h1,h2,h3,.tf-title,.bt-f-title) {font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;font-weight:700 !important;font-synthesis:none !important}
body .app .view :is(p,label,.tl-range,.tl-notes,.hint,.subtitle), body .modal-sheet :is(p,label,.tf-sub,.tf-hint) {font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;font-weight:400 !important}
/* Highest-priority app-wide font and consistent button sizing. */
html body .app .view,
html body .app .view *,
html body .modal-sheet,
html body .modal-sheet * {font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;font-synthesis:none !important}
html body .app .view button,
html body .app .view button *,
html body .modal-sheet button,
html body .modal-sheet button * {font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;font-size:16px !important;font-weight:700 !important;font-synthesis:none !important}
html body .app .view :is(button.primary,.primary-btn,.bt-start,.rest-add-btn,.wk-draw-btn,.wg-deck-btn,.wk-ic-main,.planb-entry-btn,.habit-checkin-btn,.brain-dump-add,.challenge-take-btn,.challenge-add-mini),
html body .modal-sheet :is(.tf-go,.tf-ghost,.bt-go,.bt-ghost) {font-size:18px !important}

/* Restore the earlier lime fill for Today day progress. */
#view-today .day-level-card .progress-inner { background:#111 !important; box-shadow:none !important; }

/* Restore the earlier lime surface for Today day progress. */
#view-today .day-level-card { background:linear-gradient(135deg,#D7ED78 0%,#E5F58A 100%) !important; color:#0D0E0A !important; }

/* Align timer and done controls with the task title; keep delete at the top. */
#timeline-list .tl-task:has(.tl-check) > .tl-check { top:52px; right:8px; }

/* The timer now lives in task details; reserve only the check control space. */
#timeline-list .tl-task:has(.tl-check) > .tl-body { padding-right:44px; }

/* Rest rows use one full-width band without a timeline rail. */
#timeline-list .tl-row.rest-row > .tl-rail { display:none !important; }

/* Keep the rest interval only inside its full-width band. */
#timeline-list .tl-row.rest-row > .tl-time-col { display:none !important; }

/* Slightly enlarge the task start times in the timeline. */
#timeline-list .tl-row:not(.rest-row) > .tl-time-col { font-size:13px !important; }


/* Today headers use Mazzard SemiBold at 18px. */
#view-today .day-level-badge,
#view-today .card-block:has(> #timeline-list) > .block-head > span:first-child {
  font-family: "Planner Mazzard", Inter, system-ui, sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  font-synthesis: none !important;
}

/* App-wide Mazzard SemiBold buttons. */
html body button,
html body button *,
html body [role="button"],
html body [role="button"] *,
html body .app button,
html body .app button *,
html body .app .view button,
html body .app .view button *,
html body .modal-sheet button,
html body .modal-sheet button *,
html body .modal-sheet [role="button"],
html body .modal-sheet [role="button"] * {
  font-family: "Planner Mazzard", Inter, system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-synthesis: none !important;
}


/* Main page feature titles use Mazzard SemiBold at 18px. */
#stats-box #week-cards-box .wk-title-lg,
#stats-box .home-rows .hr-name,
#stats-box #home-challenges-block .block-head > span:first-child,
#stats-box .progress-card-brain-btn {
  font-family: "Planner Mazzard", Inter, system-ui, sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  font-synthesis: none !important;
}

/* Plan B rows: align text from the same left edge after removing side badges. */
#view-planb .planb-row {
  justify-content:flex-start !important;
}
#view-planb .planb-info {
  flex:1 1 0 !important;
  min-width:0 !important;
  text-align:left !important;
}

/* Main page typography scale: 12 / 14 / 16 / 18 / 24px. */
:root {
  --type-meta:12px;
  --type-body:14px;
  --type-card-title:16px;
  --type-section:18px;
  --type-page:24px;
}
#view-sprint .page-head h2 {
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:var(--type-page) !important;
  font-weight:700 !important;
  letter-spacing:-.02em;
}
#view-sprint .greet-hi {font-size:var(--type-meta) !important;}
#stats-box :is(.progress-card-label,.progress-card-date) {font-size:var(--type-body) !important;}
#stats-box .progress-ring-label {font-size:var(--type-meta) !important;}
#stats-box .wk-head {font-size:var(--type-card-title) !important;font-weight:600 !important;}
#stats-box :is(.wk-text,.week-cards-row .wk-card-compact .wk-text) {
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:var(--type-body) !important;
  font-weight:400 !important;
  line-height:1.4;
}
#stats-box :is(.wk-eyebrow,.wk-empty,.week-cards-row .wk-card-compact .wk-empty,
  .home-challenge-meta,.home-challenges-empty) {
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:var(--type-meta) !important;
  font-weight:400 !important;
}
#stats-box .home-challenge-title {
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:var(--type-body) !important;
  font-weight:600 !important;
}
#stats-box .hr-ring b {font-size:var(--type-meta) !important;font-weight:600 !important;}
#stats-box .chk {font-size:13px !important;font-weight:600 !important;}
#stats-box :is(.home-challenge-btn,.challenge-add-mini,.wk-draw-btn,.wk-ic-main) {
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:14px !important;
  font-weight:600 !important;
}
body .app .view .nav-btn .nav-label {
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:12px !important;
  font-weight:600 !important;
}
@media (max-width:600px) {
  #view-sprint .page-head h2 {font-size:22px !important;}
}

/* Weekly card controls share the warm lime action color. */
#stats-box #week-cards-box :is(.wk-ic-main,.wg-deck-btn) {
  background:#E3F488 !important;
  background-image:none !important;
  color:#282923 !important;
  border-color:#E3F488 !important;
}

/* Requested 16px labels for the two main page actions. */
#stats-box #card-boss .bt-start,
#stats-box .progress-card-brain-btn {
  font-size:16px !important;
}

/* Keep the Today mode switch visible beside the date header on every screen. */
#view-today .greet {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:8px !important;
  min-width:0;
}
#view-today .greet > .profile-row {
  flex:1 1 0 !important;
  min-width:0 !important;
}
#view-today .greet > .profile-row > div:last-child {
  flex:1 1 0 !important;
  min-width:0 !important;
}
#view-today .greet > #today-view-toggle {
  display:flex !important;
  align-items:center;
  flex:0 0 auto !important;
  gap:2px;
  width:max-content;
  max-width:100%;
  margin:0 !important;
  padding:4px;
  border-radius:24px;
  background:#EEF1D2;
  z-index:2;
}
#view-today #today-view-toggle > button {
  width:76px;
  min-width:76px;
  height:40px;
  padding:0 8px;
  border:0;
  border-radius:20px;
  background:transparent;
  box-shadow:none;
  color:#3E4421;
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:14px !important;
  font-weight:600 !important;
  white-space:nowrap;
}
#view-today #today-view-toggle > button.on {
  background:#0D0E0A;
  color:#F3F8D0;
}
@media (max-width:600px) {
  #view-today .greet {gap:8px !important;}
  #view-today #today-title {
    font-size:22px !important;
    letter-spacing:-.03em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  #view-today #today-view-toggle {gap:1px;padding:3px;}
  #view-today #today-view-toggle > button {
    width:56px;
    min-width:56px;
    height:34px;
    padding:0 2px;
    font-size:12px !important;
  }
}
@media (max-width:380px) {
  #view-today .greet {gap:6px !important;}
  #view-today #today-title {font-size:20px !important;}
  #view-today #today-view-toggle > button {
    width:50px;
    min-width:50px;
    padding:0;
    font-size:11px !important;
  }
}

/* Brain dump: keep entry typography identical across list, cards and tiles. */
#view-brain :is(.brain-dump-title,.brain-dump-text,.bd-card-title,.bt-title) {
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:15px !important;
  font-weight:400 !important;
  line-height:1.35 !important;
}

/* Brain dump composer and summary labels. */
#view-brain #brain-dump-input {
  background:transparent !important;
}
#view-brain .bs-stat {
  align-items:flex-start !important;
  justify-content:center !important;
  box-sizing:border-box;
  min-height:96px;
  padding:14px 16px !important;
  gap:4px !important;
  text-align:left !important;
}
#view-brain .bs-stat b {
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:32px !important;
  font-weight:700 !important;
  line-height:1 !important;
}
#view-brain .bs-stat span {
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:14px !important;
  font-weight:600 !important;
  line-height:1.3 !important;
  text-align:left !important;
}

/* Focus mode selector styled like Brain Dump filters. */
#view-focus .focus-tabs {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px !important;
  padding:0 !important;
  margin-bottom:18px !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
#view-focus .focus-tab {
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:46px;
  padding:8px 10px !important;
  border:1.5px solid #DADAD4 !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#0D0E0A !important;
  box-shadow:none !important;
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:16px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
  text-align:center;
  white-space:normal;
}
#view-focus .focus-tab.active {
  border-color:#0D0E0A !important;
  background:#0D0E0A !important;
  color:#fff !important;
}

/* Meditation breathing patterns: pill filters in two rows. */
#view-meditation .breath-pattern-tabs {
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px !important;
  overflow:visible !important;
  margin-bottom:22px !important;
}
#view-meditation .breath-pattern-tab {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0 !important;
  min-height:44px;
  aspect-ratio:auto;
  padding:5px 10px !important;
  border:1.5px solid #DADAD4 !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#0D0E0A !important;
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:15px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
  box-shadow:none !important;
}
#view-meditation .breath-pattern-tab.active {
  border-color:#0D0E0A !important;
  background:#0D0E0A !important;
  color:#fff !important;
}

/* Tracker Plan B banner: preserve the supplied lime pill design over theme defaults. */
#view-tracker .planb-entry-btn {
  position:relative;
  display:flex !important;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  width:calc(100% - 16px);
  min-height:90px;
  box-sizing:border-box;
  padding:10px 16px 10px 106px !important;
  margin:0 8px 16px !important;
  overflow:visible;
  border:1px solid rgba(255,255,255,.8) !important;
  border-radius:999px !important;
  background:linear-gradient(115deg,#D7F26B 0%,#E3F488 100%) !important;
  color:#0D0E0A !important;
  text-align:left;
  box-shadow:0 8px 22px rgba(175,205,55,.24),inset 0 1px 0 rgba(255,255,255,.65) !important;
}
#view-tracker .planb-entry-btn .planb-manul {
  position:absolute;
  left:8px;
  bottom:0;
  width:94px;
  max-height:84px;
  height:auto;
  object-fit:contain;
  object-position:left bottom;
  pointer-events:none;
  filter:drop-shadow(0 4px 6px rgba(62,68,33,.18));
}
#view-tracker .planb-entry-btn .planb-text {
  display:flex;
  flex:1;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
#view-tracker .planb-entry-btn .planb-text b {
  color:#0D0E0A !important;
  font-size:22px !important;
  font-weight:700 !important;
  line-height:1 !important;
}
#view-tracker .planb-entry-btn .planb-text small {
  color:#3E4421 !important;
  font-size:12.5px !important;
  font-weight:500 !important;
  line-height:1.25 !important;
}
#view-tracker .planb-entry-btn .planb-go {
  display:flex;
  flex:none;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border:1.5px solid rgba(255,255,255,.95);
  border-radius:50%;
  background:transparent;
  box-shadow:none;
}
#view-tracker .planb-entry-btn .planb-go svg {
  width:22px;
  height:22px;
  stroke:#0D0E0A;
}
@media (max-width:380px) {
  #view-tracker .planb-entry-btn {width:calc(100% - 12px);min-height:82px;margin:0 6px 16px !important;padding:8px 12px 8px 88px !important;gap:7px;}
  #view-tracker .planb-entry-btn .planb-manul {width:78px;max-height:76px;}
  #view-tracker .planb-entry-btn .planb-text b {font-size:20px !important;}
  #view-tracker .planb-entry-btn .planb-text small {font-size:11.5px !important;}
  #view-tracker .planb-entry-btn .planb-go {width:36px;height:36px;}
}

/* Give the Plan B screen a calm, consistent page gutter. */
#view-planb {
  padding-left:10px !important;
  padding-right:10px !important;
  box-sizing:border-box;
}

/* Plan B habit rows: inset titles and bring Select closer to delete. */
#view-planb .planb-row {
  gap:8px !important;
  padding-left:18px !important;
}

/* Plan B lives match the app's lime and muted-outline palette. */
#view-planb .planb-heart {
  width:30px !important;
  height:30px !important;
}
#view-planb .planb-heart svg {
  width:26px !important;
  height:26px !important;
  fill:#D7F26B !important;
  stroke:#8DA83A !important;
  stroke-width:1.6px !important;
  stroke-linejoin:round;
}
#view-planb .planb-heart.spent svg {
  fill:transparent !important;
  stroke:#D6D8CF !important;
}

/* Make weekly boss goal labels readable at a glance. */
#card-boss .wg-goal > span {
  font-family:"Planner Mazzard",Inter,system-ui,sans-serif !important;
  font-size:14px !important;
  font-weight:600 !important;
  line-height:1.25 !important;
  color:#3E4421 !important;
}


/* User-configurable day period dividers for the Today timeline. */
#timeline-list .tl-row.divider-row {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-rows:auto !important;
  min-height:0;
  margin:4px 0 8px;
  padding:0 6px;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
#timeline-list .tl-divider {display:flex;align-items:center;gap:12px;min-width:0}
#timeline-list .tl-divider-bar {height:1px;flex:1;background:#262721;opacity:1}
#timeline-list .tl-divider-label {
  padding:5px 12px;
  border-radius:999px;
  background:#262721;
  color:#FFFFFF;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
}

/* Subtle custom background choices for task cards. */
#timeline-list .tl-row:has(.tl-check) {background:var(--task-card-color,var(--color-card)) !important}
#timeline-list .tl-row:has(.tl-check) > .tl-time-col,
#timeline-list .tl-row:has(.tl-check) .tl-range,
#timeline-list .tl-row:has(.tl-check) .tl-title,
#timeline-list .tl-row:has(.tl-check) .tl-title *,
#timeline-list .tl-row:has(.tl-check) .tl-notes {color:var(--task-card-ink,#0D0E0A) !important}
#task-category-grid + .row-title {margin-top:8px}
.task-card-color-grid {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:4px 0 16px}
.task-card-color-option {
  width:40px;height:40px;flex:0 0 40px;
  border:1.5px solid #DADCCF !important;
  border-radius:50% !important;
  background:var(--swatch-color,#fff) !important;
  box-shadow:none !important;
  padding:0;
  cursor:pointer;
}
.task-card-color-option.active {border:2px solid #343722 !important;box-shadow:0 0 0 3px #E3F488 !important}
#timeblock-manager-list .timeblock-row.period-time-row {
  grid-template-columns:minmax(0,1fr) 126px !important;
  gap:12px !important;
  padding:8px 0;
}
#timeblock-manager-list .period-time-row .timeblock-label {font-size:15px;white-space:nowrap}
#timeblock-manager-list .period-time-row input[type=time] {max-width:126px}
@media (max-width:380px) {
  #timeblock-manager-list .timeblock-row.period-time-row {grid-template-columns:minmax(0,1fr) 112px !important;gap:8px !important}
  #timeblock-manager-list .period-time-row input[type=time] {max-width:112px}
}

.task-card-custom-option {
  position:relative;display:grid;place-items:center;
  width:40px;height:40px;flex:0 0 40px;
  overflow:hidden;border:1.5px solid #DADCCF;border-radius:50%;
  background:conic-gradient(#f06b6b,#f0c85e,#9dca68,#60cbbb,#628cf0,#a174d6,#f06b6b);
  color:#262721;font-size:22px;font-weight:500;cursor:pointer;
}
.task-card-custom-option.active {border:2px solid #343722;box-shadow:0 0 0 3px #E3F488}
.task-card-custom-option input {position:absolute;inset:0;width:100%;height:100%;opacity:0.01;cursor:pointer}
