:root {
  color-scheme: light;
  --ink: #20362f;
  --muted: #899790;
  --line: #e9efec;
  --canvas: #f5f8f6;
  --surface: #ffffff;
  --green: #286a54;
  --green-dark: #286a54;
  --green-light: #e7f3ed;
  --font: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif;
  font-family: var(--font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.screen-time-status {
  min-height: 14px;
  margin: 6px 0 0;
  color: #68786e;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 17px;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #8ccbb0;
  outline-offset: 3px;
}

button:disabled {
  cursor: default;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 246px;
  flex-direction: column;
  padding: 29px 18px 17px;
  background: #fff;
  border-right: 1px solid #edf1ef;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 46px 8px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--green);
  background: #e9f4ee;
  border-radius: 12px;
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.55px;
}

.brand-name span {
  color: var(--green);
}

.sidebar-label,
.card-kicker,
.eyebrow,
.summary-label {
  color: #52685a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.sidebar-label {
  margin: 0 0 13px 12px;
  font-size: 13px;
}

.primary-nav {
  display: grid;
  gap: 5px;
}

.nav-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 13px;
  padding: 0 12px;
  color: #627268;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.nav-link:hover {
  color: var(--green-dark);
  background: #f5f8f6;
}

.nav-link.is-active {
  color: var(--green-dark);
  background: #eaf4ee;
  font-weight: 700;
}

.nav-link svg,
.icon-button svg,
.date-picker svg,
.break-button svg,
.focus-symbol svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-badge {
  margin-left: auto;
  padding: 3px 5px;
  color: #52685a;
  background: #f0f6f2;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-spacer {
  flex: 1;
  min-height: 25px;
}

.sidebar-quote {
  position: relative;
  margin: 0 2px 20px;
  padding: 17px 15px 14px;
  overflow: hidden;
  background: #f4f8f5;
  border: 1px solid #eef3ef;
  border-radius: 12px;
}

.quote-spark {
  color: #5d9a7d;
  font-size: 19px;
}

.sidebar-quote p {
  margin: 9px 0 11px;
  color: #51665d;
  font-size: 16px;
  line-height: 1.8;
}

.quote-caption {
  color: #65766b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .85px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 0;
  border-top: 1px solid #edf1ef;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: #b1c9b9;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}

.profile-copy {
  display: grid;
  gap: 2px;
}

.profile-copy strong {
  font-size: 15px;
}

.profile-copy small {
  color: #98a39e;
  font-size: 13px;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #8c9992;
  background: transparent;
  border: 0;
  border-radius: 9px;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button:disabled {
  opacity: .7;
}

.profile-menu {
  margin-left: auto;
}

.profile-menu svg {
  fill: currentColor;
  stroke: none;
}

.sidebar-scrim {
  display: none;
}

.main-content {
  min-height: 100vh;
  margin-left: 246px;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  height: 67px;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid #edf1ef;
  backdrop-filter: blur(12px);
}

.topbar-left,
.topbar-right,
.breadcrumb {
  display: flex;
  align-items: center;
}

.breadcrumb {
  gap: 11px;
  color: #a0aaa5;
  font-size: 15px;
}

.breadcrumb strong {
  color: #52645b;
  font-weight: 600;
}

.breadcrumb-separator {
  color: #c9d1cd;
}

.topbar-right {
  gap: 17px;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #8c7651;
  background: #fcf6e9;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
}

.demo-label span {
  width: 6px;
  height: 6px;
  background: #d0a34d;
  border-radius: 50%;
}

.live-data-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #286a54;
  background: #edf6ef;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
}

.live-data-label span {
  width: 6px;
  height: 6px;
  background: #67a67d;
  border-radius: 50%;
}

.topbar-divider {
  width: 1px;
  height: 22px;
  background: #e8eeeb;
}

.today-date {
  color: #7e8c84;
  font-size: 14px;
}

.notification-button {
  position: relative;
  color: #7e8c84;
}

.notification-button::after {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  content: "";
  background: #77af8e;
  border: 1px solid #fff;
  border-radius: 50%;
}

.menu-toggle {
  display: none;
}

.dashboard-content {
  width: min(100%, 1380px);
  margin: 0 auto;
  padding: 30px 40px 20px;
}

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 23px;
}

.eyebrow {
  margin: 0 0 7px;
  font-size: 12px;
}

h1,
h2,
p {
  margin-top: 0;
}

.welcome-row h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.6px;
}

.welcome-row h1 span {
  color: #6ea486;
  font-size: 19px;
}

.welcome-subtitle {
  margin: 5px 0 0;
  color: #65766b;
  font-size: 15px;
}

.date-picker {
  display: flex;
  height: 37px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  color: #617269;
  background: #fff;
  border: 1px solid #e7eeea;
  border-radius: 8px;
  font-size: 14px;
}

.date-picker:disabled {
  opacity: 1;
}

.date-picker svg {
  width: 15px;
  height: 15px;
}

.date-picker .chevron {
  width: 13px;
  height: 13px;
  margin-left: 3px;
  color: #a1ada6;
}

.hero-grid,
.middle-grid,
.lower-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-grid {
  grid-template-columns: 1.12fr .88fr;
}

.middle-grid {
  grid-template-columns: 1.12fr .88fr;
}

.lower-grid {
  grid-template-columns: 1.5fr .82fr;
  align-items: stretch;
}

.card {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid #edf1ef;
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(31, 62, 47, .025);
}

.hero-grid > .card {
  min-height: 214px;
}

.card-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .95px;
}

.card h2 {
  margin: 0;
  color: #2b4037;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.2px;
}

.soft-icon {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
}

.soft-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.green-icon {
  color: #559476;
  background: #ecf5ef;
}

.lilac-icon {
  color: #8a83b2;
  background: #f1f0f8;
}

.peach-icon {
  color: #c28b67;
  background: #fbf1e9;
}

.screen-time-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 17px 0 8px;
}

.screen-time-value strong {
  color: #274d3e;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -1.6px;
  line-height: 1;
}

.screen-time-value span {
  margin-right: 6px;
  color: #7c8b83;
  font-size: 15px;
}

.screen-time-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #929e97;
  font-size: 13px;
}

.screen-time-footer strong {
  color: #63766b;
  font-weight: 600;
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px;
  color: #4d9470;
  background: #edf6ef;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.trend-pill svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.screen-time-track {
  height: 6px;
  margin-top: 17px;
  overflow: hidden;
  background: #edf2ef;
  border-radius: 20px;
}

.screen-time-track span {
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, #71af8d, #43876b);
  border-radius: inherit;
}

.track-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: #65766b;
  font-size: 12px;
}

.goal-main {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 10px 0 13px;
}

.goal-ring {
  display: grid;
  width: 100px;
  height: 100px;
  flex: 0 0 auto;
  place-items: center;
  background: conic-gradient(#72a989 0 72%, #edf2ef 72% 100%);
  border-radius: 50%;
}

.goal-ring > div {
  display: flex;
  width: 79px;
  height: 79px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
}

.goal-ring strong {
  color: #365b48;
  font-size: 22px;
  font-weight: 600;
}

.goal-ring span {
  margin-top: 1px;
  color: #9aa69f;
  font-size: 12px;
}

.goal-copy > strong {
  color: #405a4b;
  font-size: 16px;
}

.goal-copy p {
  margin: 4px 0 7px;
  color: #8f9b94;
  font-size: 13px;
  line-height: 1.65;
}

.goal-count {
  color: #5c9476;
  font-size: 13px;
  font-weight: 600;
}

.goal-list-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  color: #75847b;
  border-top: 1px solid #eff2f0;
  font-size: 13px;
}

.goal-detail-list {
  display: grid;
  gap: 11px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eff2f0;
}

.goal-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.goal-detail-heading strong {
  color: #66776c;
  font-size: 13px;
}

.goal-detail-heading > span {
  color: #4f8b68;
  font-size: 12px;
  font-weight: 700;
}

.goal-detail p {
  margin: 4px 0 6px;
  color: #929e97;
  font-size: 12px;
  line-height: 1.55;
}

.goal-detail p strong {
  color: #65766b;
  font-weight: 600;
}

.goal-detail-track,
.goal-setting-track {
  height: 5px;
  overflow: hidden;
  background: #edf2ef;
  border-radius: 10px;
}

.goal-detail-track > span,
.goal-setting-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: #72a989;
  border-radius: inherit;
  transition: width .25s ease;
}

.goal-detail:nth-child(2) .goal-detail-track > span {
  background: #8a83b2;
}

.goal-list-preview > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.goal-dot,
.category-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.goal-dot.complete {
  background: #77ab89;
}

.goal-check {
  color: #5d9a76;
  font-size: 16px;
  font-weight: 700;
}

.category-card,
.eye-card {
  min-height: 258px;
}

.text-link {
  padding: 5px 0;
  color: #6e9a80;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 600;
}

.text-link:disabled {
  opacity: .85;
}

.text-link span {
  margin-left: 3px;
  font-size: 16px;
}

.category-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 10px;
}

.category-total strong {
  color: #344a3e;
  font-size: 17px;
  font-weight: 600;
}

.category-total span {
  color: #a0aaa4;
  font-size: 13px;
}

.category-bar {
  display: flex;
  height: 8px;
  gap: 3px;
  overflow: hidden;
  border-radius: 8px;
}

.segment {
  display: block;
  height: 100%;
  border-radius: 5px;
}

.segment.social {
  width: 38%;
  background: #7eae91;
}

.segment.study {
  background: #a8c8b4;
}

.segment.work {
  background: #8fbb9d;
}

.segment.entertainment {
  background: #d5c6a8;
}

.segment.exercise {
  background: #b6c6a4;
}

.segment.other {
  background: #c9d5cf;
}

.category-empty,
.weekly-empty {
  margin: 12px 0 0;
  color: #627268;
  font-size: 14px;
}

.category-list {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.category-list li {
  display: grid;
  min-height: 33px;
  grid-template-columns: minmax(90px, 1fr) auto 36px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f1f3f2;
}

.category-list li:last-child {
  border-bottom: 0;
}

.category-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #78867e;
  font-size: 13px;
}

.category-list strong {
  color: #53645a;
  font-size: 13px;
  font-weight: 600;
}

.category-percent {
  color: #97a29c;
  font-size: 13px;
  text-align: right;
}

.social-dot {
  background: #7eae91;
}

.work-dot {
  background: #a8c8b4;
}

.study-dot {
  background: #a8c8b4;
}

.entertainment-dot {
  background: #d5c6a8;
}

.exercise-dot {
  background: #b6c6a4;
}

.other-dot {
  background: #c9d5cf;
}

.eye-description {
  margin: 23px 0 17px;
  color: #87948d;
  font-size: 14px;
  line-height: 1.8;
}

.break-countdown {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #87948d;
  font-size: 13px;
}

.countdown-dot {
  width: 6px;
  height: 6px;
  background: #d3a269;
  border-radius: 50%;
}

.break-countdown strong {
  color: #a7774c;
  font-size: 16px;
  font-weight: 600;
}

.break-button {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: #956d4b;
  background: #fbf4ec;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.break-button svg {
  width: 15px;
  height: 15px;
}

.demo-note {
  display: block;
  margin-top: 7px;
  color: #b3aaa0;
  font-size: 12px;
  text-align: center;
}

.weekly-card {
  min-height: 345px;
  padding-bottom: 17px;
}

.dashboard-data-error {
  margin-bottom: 16px;
  padding: 12px 15px;
  color: #994f46;
  background: #fcf0ee;
  border: 1px solid #f2ddd9;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1.6;
}

.week-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  color: #77877e;
  background: #fbfcfb;
  border: 1px solid #eef2ef;
  border-radius: 7px;
  font-size: 13px;
  white-space: nowrap;
}

.week-label span {
  color: #a1aca5;
}

.weekly-summary-line {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 17px;
}

.weekly-summary-line > div:first-child {
  display: grid;
  gap: 1px;
}

.weekly-summary-line > div:first-child strong {
  color: #345241;
  font-size: 22px;
  font-weight: 600;
}

.weekly-summary-line > div:first-child small {
  font-size: 14px;
  font-weight: 500;
}

.weekly-summary-line > div:first-child > span,
.weekly-change small {
  color: #9aa59f;
  font-size: 12px;
}

.weekly-change {
  display: grid;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid #e9efec;
}

.weekly-change span {
  color: #589573;
  font-size: 14px;
  font-weight: 700;
}

.weekly-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #8e9c94;
  font-size: 12px;
}

.weekly-legend i {
  width: 7px;
  height: 7px;
  background: #75a987;
  border-radius: 2px;
}

.chart {
  position: relative;
  height: 174px;
  margin-top: 15px;
  padding: 0 0 21px 39px;
}

.chart-guides {
  position: absolute;
  inset: 0 0 21px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-guides span {
  position: relative;
  color: #a8b1ac;
  font-size: 12px;
  line-height: 0;
}

.chart-guides span::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 34px;
  height: 1px;
  content: "";
  background: #f0f3f1;
}

.chart-columns {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.chart-column {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.chart-bar {
  width: min(24px, 68%);
  height: var(--bar-height, 0%);
  min-height: 0;
  background: #c7ddce;
  border-radius: 5px 5px 2px 2px;
}

.chart-column.is-today .chart-bar {
  background: #5a9b76;
}

.chart-day {
  color: #99a59e;
  font-size: 12px;
}

.chart-column.is-today .chart-day {
  color: #4b8d68;
  font-weight: 700;
}

.tools-column {
  display: grid;
  gap: 12px;
  grid-template-rows: .95fr 1.05fr;
}

.focus-card {
  position: relative;
  min-height: 197px;
  overflow: hidden;
  color: #fff;
  background: #386e58;
  border: 0;
}

.focus-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.focus-symbol {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #d7eadc;
  background: rgba(255, 255, 255, .13);
  border-radius: 9px;
}

.focus-tag {
  color: #c1d9c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.focus-card h2 {
  position: relative;
  z-index: 1;
  margin: 12px 0 6px;
  color: #fff;
  font-size: 18px;
  line-height: 1.55;
}

.focus-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #d0e0d4;
  font-size: 13px;
  line-height: 1.7;
}

.focus-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 11px;
  padding: 7px 11px;
  color: #345f4b;
  background: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.focus-button span {
  font-size: 16px;
}

.goals-page-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.goals-settings-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
}

.goal-setting-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.goal-setting-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  color: #558b6d;
  background: #edf6ef;
  border-radius: 10px;
  font-size: 19px;
}

.social-goal-icon {
  color: #8a83b2;
  background: #f1f0f8;
}

.focus-goal-icon {
  color: #b17d59;
  background: #fbf2ea;
}

.goal-setting-heading h2 {
  margin: 0;
  color: #344a3e;
  font-size: 16px;
}

.goal-setting-heading p:last-child {
  margin: 6px 0 0;
  color: #8e9b93;
  font-size: 12px;
  line-height: 1.6;
}

.goal-setting-current {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-top: 20px;
  color: #87948c;
  font-size: 12px;
}

.goal-setting-current > strong {
  width: 100%;
  color: #365945;
  font-size: 25px;
}

.goal-setting-current > span:nth-of-type(2) strong {
  color: #61756a;
  font-weight: 600;
}

.goal-setting-progress {
  margin-left: auto;
  color: #548b69;
  font-weight: 700;
}

.goal-setting-track {
  margin: 9px 0 17px;
}

.goal-input-label {
  margin-top: auto;
  color: #5a6d61;
  font-size: 12px;
  font-weight: 600;
}

.goal-hours-input {
  width: 100%;
  min-height: 39px;
  margin-top: 7px;
  padding: 8px 10px;
  color: #42564a;
  background: #fff;
  border: 1px solid #e3ebe6;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
}

.goal-hours-input:focus {
  border-color: #8ab79b;
  outline: 3px solid rgba(123, 174, 140, .16);
}

.goal-hours-input[aria-invalid="true"] {
  border-color: #ce8c7f;
}

.goals-form-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
}

.goals-form-actions > span {
  color: #98a49c;
  font-size: 12px;
}

.focus-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, .7fr);
  align-items: stretch;
  gap: 15px;
  margin-bottom: 16px;
}

.focus-timer-panel {
  display: flex;
  min-height: 490px;
  flex-direction: column;
  align-items: center;
  padding: 27px;
}

.focus-panel-heading {
  align-self: stretch;
  text-align: center;
}

.focus-panel-heading .card-kicker {
  margin-bottom: 7px;
}

.focus-panel-heading h2,
.focus-today-card h2,
.focus-tip-card h2 {
  margin: 0;
  color: #344a3e;
  font-size: 17px;
  font-weight: 600;
}

.timer-face {
  display: flex;
  width: 220px;
  height: 220px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 14px;
  background: radial-gradient(circle at center, #fff 62%, transparent 63%), conic-gradient(#72a989 0%, #eaf2ec 0%);
  border-radius: 50%;
  box-shadow: 0 0 0 9px #f5f8f6;
}

.timer-face > span {
  color: #345342;
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.timer-face > small {
  color: #88968e;
  font-size: 13px;
}

.timer-progress-track {
  width: min(100%, 310px);
  height: 6px;
  overflow: hidden;
  background: #edf2ef;
  border-radius: 10px;
}

.timer-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: #6aa17e;
  border-radius: inherit;
  transition: width .25s linear;
}

.timer-settings {
  display: grid;
  width: min(100%, 410px);
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

.duration-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.duration-options legend,
.focus-category-field label {
  margin-bottom: 8px;
  color: #627269;
  font-size: 12px;
  font-weight: 600;
}

.duration-option-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.duration-option-list label {
  cursor: pointer;
}

.duration-option-list input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.duration-option-list label > span {
  display: grid;
  min-height: 37px;
  place-items: center;
  color: #76857c;
  background: #f7f9f7;
  border: 1px solid #e7eeea;
  border-radius: 8px;
  font-size: 12px;
}

.duration-option-list input:checked + span {
  color: #3f7656;
  background: #edf6ef;
  border-color: #9fc5a9;
  font-weight: 700;
}

.duration-option-list input:focus-visible + span {
  outline: 3px solid #8ccbb0;
  outline-offset: 2px;
}

.duration-option-list input:disabled + span {
  cursor: default;
  opacity: .6;
}

.focus-category-field {
  display: flex;
  flex-direction: column;
}

.focus-category-field select {
  min-height: 38px;
  padding: 7px 10px;
  color: #52655a;
  background: #fff;
  border: 1px solid #e3ebe6;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.focus-category-field select:disabled {
  color: #89968e;
  background: #f6f8f6;
}

.timer-controls {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.timer-controls .primary-button,
.timer-controls .secondary-button {
  min-width: 100px;
  font-size: 14px;
}

.timer-help {
  margin: 12px 0 0;
  color: #98a49c;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.focus-error,
.focus-notice {
  margin-bottom: 15px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.focus-error {
  color: #994f46;
  background: #fcf0ee;
  border: 1px solid #f2ddd9;
}

.focus-notice {
  color: #467957;
  background: #eef7f0;
  border: 1px solid #dfefe2;
}

.focus-side-column {
  display: grid;
  align-content: start;
  gap: 15px;
}

.focus-today-card,
.focus-tip-card {
  padding: 20px;
}

.focus-today-card h2 {
  margin-top: 7px;
  font-size: 16px;
}

.focus-today-total {
  display: block;
  margin-top: 15px;
  color: #3d7655;
  font-size: 34px;
  font-weight: 600;
}

.focus-today-card > p:not(.card-kicker) {
  margin: 3px 0 13px;
  color: #89968e;
  font-size: 12px;
}

.focus-today-progress {
  height: 6px;
  overflow: hidden;
  background: #edf2ef;
  border-radius: 10px;
}

.focus-today-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: #72a989;
  border-radius: inherit;
}

.focus-today-goal {
  display: block;
  margin-top: 8px;
  color: #8b9990;
  font-size: 12px;
}

.focus-today-goal strong {
  color: #63766b;
}

.focus-tip-card .quote-spark {
  display: inline-block;
  margin-bottom: 9px;
}

.focus-tip-card h2 {
  font-size: 15px;
}

.focus-tip-card p {
  margin: 7px 0 0;
  color: #89968e;
  font-size: 12px;
  line-height: 1.75;
}

.focus-history-card {
  margin-bottom: 16px;
  padding: 21px;
}

.focus-history-count {
  color: #819087;
  font-size: 12px;
}

.focus-session-empty {
  padding: 25px 10px;
  color: #99a59e;
  font-size: 13px;
  text-align: center;
}

.focus-session-list {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.focus-session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  background: #f8faf8;
  border: 1px solid #edf1ef;
  border-radius: 8px;
}

.focus-session-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.focus-session-info strong {
  color: #546a5a;
  font-size: 13px;
}

.focus-session-info span,
.focus-session-date {
  color: #89968e;
  font-size: 12px;
}

.focus-session-date {
  flex: 0 0 auto;
}

.eye-break-error {
  margin: 14px 40px 0;
  padding: 10px 13px;
  color: #994f46;
  background: #fcf0ee;
  border: 1px solid #f2ddd9;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.eye-break-banner {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: min(520px, calc(100vw - 32px));
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid #e3eae5;
  border-left: 4px solid #d4a56e;
  border-radius: 13px;
  box-shadow: 0 12px 40px rgba(32, 54, 47, .16);
}

.eye-break-message h2 {
  margin: 0;
  color: #364c3f;
  font-size: 17px;
  font-weight: 600;
}

.eye-break-description {
  margin: 5px 0 0;
  color: #829087;
  font-size: 14px;
  line-height: 1.55;
}

.eye-break-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.eye-break-actions .primary-button,
.eye-break-actions .secondary-button {
  min-height: 44px;
  padding: 0 11px;
  font-size: 13px;
  white-space: nowrap;
}

.eye-break-actions [data-eye-break-action="close"] {
  color: #77867d;
  background: #f5f8f6;
}

.reminder-settings-card {
  max-width: 760px;
  padding: 25px;
}

.reminder-settings-card h2 {
  font-size: 18px;
}

.reminder-settings-description {
  max-width: 610px;
  margin: 17px 0 19px;
  color: #849188;
  font-size: 14px;
  line-height: 1.8;
}

.reminder-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid #edf1ef;
  border-bottom: 1px solid #edf1ef;
  cursor: pointer;
}

.reminder-toggle-row > span {
  display: grid;
  gap: 5px;
}

.reminder-toggle-row strong {
  color: #4e6255;
  font-size: 15px;
}

.reminder-toggle-row small {
  color: #8a978f;
  font-size: 13px;
  line-height: 1.6;
}

.reminder-toggle-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: #4d8c6c;
}

.eye-break-intervals {
  max-width: 440px;
  margin: 19px 0 0;
  padding: 0;
  border: 0;
}

.eye-break-intervals legend {
  margin-bottom: 9px;
  color: #586b60;
  font-size: 14px;
  font-weight: 600;
}

.eye-break-intervals .duration-option-list label > span {
  min-height: 42px;
  font-size: 13px;
}

.eye-break-intervals input:disabled + span {
  cursor: default;
  opacity: .55;
}

.reminder-break-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 21px;
  padding: 12px;
  color: #7c8981;
  background: #f8faf8;
  border-radius: 8px;
  font-size: 13px;
}

.reminder-break-info strong {
  color: #586f5e;
}

.reminder-info-icon {
  color: #a9825c;
  font-size: 18px;
}

.reminder-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 19px;
}

.reminder-settings-actions .secondary-button {
  min-height: 44px;
  font-size: 13px;
}

.reminder-settings-actions > span {
  color: #8e9b93;
  font-size: 12px;
}

.settings-feedback,
.settings-error {
  max-width: 760px;
  margin-bottom: 13px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13px;
}

.settings-feedback {
  color: #467957;
  background: #eef7f0;
  border: 1px solid #dfefe2;
}

.settings-error {
  color: #994f46;
  background: #fcf0ee;
  border: 1px solid #f2ddd9;
}

@media (max-width: 800px) {
  .eye-break-error {
    margin-right: 22px;
    margin-left: 22px;
  }
}

@media (max-width: 620px) {
  .eye-break-banner {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 15px;
  }

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

  .eye-break-actions .primary-button {
    grid-column: 1 / -1;
  }

  .eye-break-actions .secondary-button {
    width: 100%;
  }

  .eye-break-error {
    margin-right: 15px;
    margin-left: 15px;
  }

  .reminder-settings-card {
    padding: 18px;
  }

  .reminder-toggle-row {
    align-items: flex-start;
  }

  .reminder-toggle-row input {
    margin-top: 3px;
  }

  .reminder-settings-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.focus-decor {
  position: absolute;
  right: -23px;
  bottom: -47px;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
}

.focus-decor::before,
.focus-decor::after {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}

.focus-decor::after {
  inset: 29px;
}

.quick-card {
  min-height: 136px;
  padding: 15px 17px 10px;
}

.quick-spark {
  color: #70a484;
  font-size: 17px;
}

.quick-actions-list {
  display: grid;
  margin-top: 7px;
}

.quick-actions-list button,
.quick-actions-list a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  color: #6f7e75;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f0f3f1;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
}

.quick-actions-list button:last-child,
.quick-actions-list a:last-child {
  border-bottom: 0;
}

.quick-action-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  font-size: 17px;
}

.add-icon {
  color: #548e6c;
  background: #edf5ef;
}

.target-icon {
  color: #8982ae;
  background: #f1f0f7;
}

.report-icon {
  color: #bc8a64;
  background: #faf1e9;
}

.quick-arrow {
  margin-left: auto;
  color: #abb5af;
  font-size: 16px;
}

.summary-row {
  margin-bottom: 15px;
}

.weekly-summary-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 17px;
  background: #eef5ef;
  border: 1px solid #e6efe8;
  border-radius: 11px;
}

.summary-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  color: #629777;
  background: #e1eee4;
  border-radius: 9px;
  font-size: 18px;
}

.weekly-summary-card > div {
  min-width: 0;
}

.summary-label {
  color: #799582;
  font-size: 11px;
}

.weekly-summary-card p {
  margin: 3px 0 0;
  color: #718277;
  font-size: 13px;
  line-height: 1.6;
}

.weekly-summary-card p strong {
  color: #4f8c68;
  font-weight: 700;
}

.weekly-summary-card > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #59886b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 2px 0 5px;
  color: #a2ada6;
  font-size: 12px;
  text-align: center;
}

.page-footer > span {
  color: #c0c9c3;
}

.footer-data-note {
  width: 100%;
  color: #52685a !important;
}

@media (min-width: 1500px) {
  .dashboard-content {
    padding-right: 52px;
    padding-left: 52px;
  }

  .card {
    padding: 23px;
  }

  .quick-card {
    padding: 16px 19px 11px;
  }
}

@media (max-width: 1100px) {
  .sidebar {
    width: 220px;
  }

  .main-content {
    margin-left: 220px;
  }

  .topbar {
    padding-right: 26px;
    padding-left: 26px;
  }

  .dashboard-content {
    padding-right: 26px;
    padding-left: 26px;
  }

  .hero-grid,
  .middle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lower-grid {
    grid-template-columns: 1.2fr .85fr;
  }

  .card {
    padding: 17px;
  }

  .goal-main {
    gap: 13px;
  }
}

@media (max-width: 800px) {
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .menu-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    z-index: 15;
    inset: 0;
    background: rgba(26, 44, 35, .28);
  }

  .menu-open .sidebar-scrim {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .topbar {
    height: 61px;
    padding: 0 22px;
  }

  .menu-toggle {
    display: grid;
    margin-right: 8px;
  }

  .topbar-right {
    gap: 11px;
  }

  .dashboard-content {
    padding: 25px 22px 18px;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 0 15px;
  }

  .topbar-right {
    gap: 8px;
  }

  .topbar-divider,
  .today-date {
    display: none;
  }

  .demo-label {
    padding: 6px 7px;
    font-size: 11px;
  }

  .dashboard-content {
    padding: 23px 15px 16px;
  }

  .welcome-row {
    align-items: flex-start;
  }

  .welcome-row h1 {
    font-size: 23px;
  }

  .welcome-subtitle {
    max-width: 235px;
    font-size: 14px;
  }

  .date-picker {
    width: 36px;
    justify-content: center;
    padding: 0;
  }

  .date-picker span,
  .date-picker .chevron {
    display: none;
  }

  .hero-grid,
  .middle-grid,
  .lower-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .hero-grid > .card {
    min-height: 0;
  }

  .category-card,
  .eye-card {
    min-height: 0;
  }

  .eye-card {
    padding-bottom: 17px;
  }

  .eye-description {
    margin-top: 17px;
  }

  .weekly-card {
    min-height: 0;
  }

  .tools-column {
    grid-template-rows: auto auto;
  }

  .focus-card {
    min-height: 203px;
  }

  .quick-card {
    min-height: 0;
  }

  .weekly-summary-card {
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .weekly-summary-card p {
    font-size: 12px;
  }

  .weekly-summary-card > a {
    align-self: center;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .card {
    padding: 16px;
  }

  .goal-ring {
    width: 88px;
    height: 88px;
  }

  .goal-ring > div {
    width: 70px;
    height: 70px;
  }

  .goal-main {
    gap: 11px;
  }

  .weekly-heading {
    flex-direction: column;
  }

  .week-label {
    align-self: flex-start;
  }

  .weekly-summary-card {
    flex-wrap: wrap;
  }

  .weekly-summary-card > div {
    flex: 1;
  }

  .weekly-summary-card > a {
    margin-left: 41px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.storage-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #286a54;
  background: #edf6ef;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .55px;
}

.storage-label span {
  width: 6px;
  height: 6px;
  background: #67a67d;
  border-radius: 50%;
}

.tracker-content {
  max-width: 1050px;
}

.tracker-welcome {
  align-items: center;
}

.back-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: #286a54;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.back-link span {
  font-size: 17px;
}

.tracker-form-card,
.entries-card {
  margin-bottom: 16px;
  padding: 23px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 19px;
  margin-top: 22px;
}

.form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #596b61;
  font-size: 14px;
  font-weight: 600;
}

.form-field label > span:first-child {
  color: #914c42;
}

.form-field label .optional-label {
  margin-left: 5px;
  color: #65766b;
  font-size: 13px;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: #42564a;
  background: #fff;
  border: 1px solid #e3ebe6;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
}

.form-field textarea {
  min-height: 78px;
  resize: vertical;
}

.form-field textarea::placeholder {
  color: #aab4ae;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #8ab79b;
  outline: 3px solid rgba(123, 174, 140, .16);
}

.form-field [aria-invalid="true"] {
  border-color: #ce8c7f;
}

.field-error {
  min-height: 0;
  color: #ad5f53;
  font-size: 13px;
}

.field-error:empty {
  display: none;
}

.duration-preview {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #4d765c;
  background: #eff7f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.duration-preview.is-invalid {
  color: #ad5f53;
  background: #fcf0ee;
}

.time-presets {
  display: grid;
  gap: 8px;
  margin-top: -5px;
}

.time-presets-label {
  color: #596b61;
  font-size: 14px;
  font-weight: 600;
}

.time-preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-preset {
  min-height: 44px;
  padding: 0 13px;
  color: #4f765f;
  background: #fff;
  border: 1px solid #dfeae2;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.time-preset:hover:not(:disabled),
.time-preset[aria-pressed="true"] {
  color: #286a54;
  background: #e7f3ed;
  border-color: #a9cbb4;
}

.time-preset:disabled {
  color: #65766b;
  background: #f7f9f7;
  cursor: not-allowed;
}

.time-presets-hint {
  color: #65766b;
  font-size: 13px;
  line-height: 1.6;
}

.form-feedback,
.list-feedback {
  margin-top: 17px;
  padding: 10px 12px;
  color: #994f46;
  background: #fcf0ee;
  border: 1px solid #f2ddd9;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.65;
}

.form-success {
  margin-top: 16px;
  padding: 9px 12px;
  color: #467957;
  background: #eef7f0;
  border: 1px solid #dfefe2;
  border-radius: 8px;
  font-size: 14px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.primary-button {
  color: #fff;
  background: #286a54;
}

.primary-button:hover {
  background: #20563f;
}

.secondary-button {
  color: #52685a;
  background: #f1f5f2;
}

.form-hint {
  margin-left: auto;
  color: #a0aaa4;
  font-size: 13px;
}

.entries-heading {
  align-items: center;
}

.entries-totals {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #93a097;
  font-size: 13px;
}

.entries-totals strong {
  color: #52685a;
  font-size: 14px;
  font-weight: 600;
}

.totals-divider {
  width: 1px;
  height: 17px;
  background: #e8eeea;
}

.empty-state {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  background: #fafcfb;
  border: 1px dashed #e3ebe6;
  border-radius: 10px;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #76a588;
  background: #eef6f0;
  border-radius: 11px;
}

.empty-state-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.empty-state strong {
  margin-top: 10px;
  color: #64766b;
  font-size: 15px;
}

.empty-state p {
  margin: 5px 12px 0;
  color: #99a69e;
  font-size: 13px;
}

.entry-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #edf1ef;
  border-radius: 9px;
}

.entry-main {
  min-width: 0;
}

.entry-heading,
.entry-time-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.entry-category {
  padding: 4px 7px;
  color: #4f8365;
  background: #edf6ef;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}

.entry-date {
  color: #8f9c94;
  font-size: 13px;
}

.entry-time-details {
  margin-top: 7px;
}

.entry-time-range {
  color: #475b4e;
  font-size: 15px;
  font-weight: 600;
}

.entry-duration {
  color: #78877e;
  font-size: 13px;
}

.entry-note {
  max-width: 650px;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: #849188;
  font-size: 13px;
  line-height: 1.6;
}

.entry-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.entry-action {
  min-height: 44px;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #e5ece8;
  border-radius: 7px;
  font-size: 13px;
}

.edit-action {
  color: #5b8069;
}

.delete-action {
  color: #a96e63;
}

.tracker-footer {
  margin-top: 5px;
}

.report-content {
  max-width: 1260px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #fff;
  background: #286a54;
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.danger-button {
  min-height: 44px;
  padding: 0 16px;
  color: #9a463d;
  background: #fff;
  border: 1px solid #dfb8b2;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.danger-button:hover {
  background: #fcf0ee;
  border-color: #c98f86;
}

.data-reset-card {
  margin-bottom: 16px;
  padding: 22px;
  border-color: #f0e5e2;
}

.data-reset-card > p {
  max-width: 720px;
  margin: 0 0 16px;
  color: #65766b;
  font-size: 15px;
  line-height: 1.7;
}

.data-reset-feedback {
  margin-top: 12px;
  color: #994f46;
  font-size: 14px;
}

.icon-button:focus-visible,
.date-picker:focus-visible,
.time-preset:focus-visible,
.entry-action:focus-visible,
.danger-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid #438b6a;
  outline-offset: 3px;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.report-stat-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px;
}

.report-stat-label,
.report-stat-caption {
  color: #52685a;
  font-size: 14px;
}

.report-stat-card > strong {
  overflow-wrap: anywhere;
  color: #315b45;
  font-size: 23px;
  line-height: 1.35;
}

.report-stat-caption {
  color: #65766b;
  font-size: 13px;
}

.report-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.report-chart-card,
.report-table-card,
.report-insights-card {
  min-width: 0;
  padding: 21px;
}

.report-chart-card h2,
.report-table-card h2,
.report-insights-card h2 {
  margin: 0;
  color: #3c5045;
  font-size: 19px;
}

.report-chart {
  min-width: 0;
  margin-top: 14px;
}

.report-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.report-category-chart {
  display: grid;
  gap: 13px;
  margin-top: 17px;
}

.category-bar-row {
  min-width: 0;
}

.category-bar-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  color: #65766b;
  font-size: 14px;
}

.category-bar-label {
  overflow-wrap: anywhere;
}

.category-bar-value {
  flex: 0 0 auto;
  color: #74847a;
  font-size: 13px;
}

.category-bar-track {
  height: 9px;
  overflow: hidden;
  background: #f0f4f1;
  border-radius: 99px;
}

.category-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.report-chart-empty {
  margin: 20px 0;
  color: #65766b;
  font-size: 14px;
  text-align: center;
}

.report-focus-chart-card {
  grid-column: 1 / -1;
}

.report-table-card,
.report-insights-card {
  margin-bottom: 16px;
}

.report-table-scroll {
  margin-top: 17px;
  overflow-x: auto;
  border: 1px solid #e9efec;
  border-radius: 9px;
}

.report-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.report-table th,
.report-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #edf1ef;
  white-space: nowrap;
}

.report-table thead th {
  color: #68796e;
  background: #f7f9f7;
  font-size: 13px;
  font-weight: 700;
}

.report-table tbody th {
  color: #506458;
  font-weight: 600;
}

.report-table tbody td {
  color: #718077;
}

.report-table tbody tr:last-child th,
.report-table tbody tr:last-child td {
  border-bottom: 0;
}

.report-insights {
  display: grid;
  gap: 9px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.report-insight-item {
  position: relative;
  padding: 11px 14px 11px 38px;
  color: #58705f;
  background: #f3f8f4;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.report-insight-item::before {
  position: absolute;
  left: 14px;
  color: #5c9b76;
  content: "•";
  font-size: 20px;
  line-height: 1.2;
}

.report-insight-muted {
  color: #78877e;
  background: #f7f9f7;
}

.report-insight-muted::before {
  color: #9aa69f;
}

.report-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #994f46;
  background: #fcf0ee;
  border: 1px solid #f2ddd9;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 360px) {
  .topbar-right .live-data-label {
    display: none;
  }

  .focus-decor {
    right: 0;
  }
}

@media (max-width: 900px) {
  .report-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .report-stat-grid,
  .report-chart-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .report-stat-card,
  .report-chart-card,
  .report-table-card,
  .report-insights-card {
    padding: 16px;
  }

  .report-focus-chart-card {
    grid-column: auto;
  }

  .report-stat-card > strong {
    font-size: 21px;
  }

  .report-table-scroll {
    margin-right: -2px;
  }
}

@media (max-width: 620px) {
  .tracker-welcome {
    flex-direction: column;
    align-items: flex-start;
  }

  .tracker-form-card,
  .entries-card {
    padding: 17px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 17px;
  }

  .form-field-full {
    grid-column: auto;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .form-hint {
    width: 100%;
    margin: 2px 0 0;
  }

  .entries-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .entries-totals {
    align-self: flex-start;
  }

  .entry-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .notification-button {
    display: none;
  }

  .storage-label {
    padding: 6px 7px;
    font-size: 11px;
  }

  .entry-actions {
    width: 100%;
  }

  .entry-action {
    flex: 1;
  }
}

@media (max-width: 900px) {
  .goals-page-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goals-settings-card:last-of-type {
    grid-column: 1 / -1;
  }

  .focus-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(210px, .72fr);
  }
}

@media (max-width: 620px) {
  .goals-page-form,
  .focus-workspace {
    grid-template-columns: 1fr;
  }

  .goals-settings-card:last-of-type {
    grid-column: auto;
  }

  .goals-form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .focus-timer-panel {
    min-height: 0;
    padding: 20px 16px;
  }

  .timer-face {
    width: 190px;
    height: 190px;
    margin: 18px 0 13px;
  }

  .timer-face > span {
    font-size: 46px;
  }

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

@media (max-width: 390px) {
  .focus-side-column {
    grid-template-columns: 1fr;
  }

  .focus-history-card {
    padding: 16px;
  }

  .duration-option-list {
    gap: 5px;
  }

  .duration-option-list label > span {
    font-size: 11px;
  }
}
