:root {
  --ink: #1d3527;
  --ink-soft: #5e7565;
  --muted: #879b8d;
  --paper: #f8fbf4;
  --surface: #ffffff;
  --surface-soft: #edf6e8;
  --surface-warm: #fdf4df;
  --line: #dfeade;
  --line-strong: #cfe0cb;
  --green: #4b9560;
  --green-dark: #2d6f48;
  --green-deep: #24583c;
  --green-light: #dcefd4;
  --yellow: #e6b852;
  --orange: #d78047;
  --shadow: 0 22px 60px rgba(42, 78, 51, 0.09);
  --shadow-small: 0 10px 28px rgba(42, 78, 51, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --max-width: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 6%, rgba(229, 243, 218, 0.78), transparent 25rem),
    radial-gradient(circle at 5% 55%, rgba(250, 239, 210, 0.48), transparent 24rem),
    var(--paper);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(75, 149, 96, 0.34);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.site-shell {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 26px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  margin-bottom: 46px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: 0.05em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(45, 111, 72, 0.12);
  border-radius: 13px 13px 15px 15px;
  background: var(--green-deep);
  box-shadow: 5px 7px 0 rgba(230, 184, 82, 0.34);
}

.brand-mark-stem {
  position: absolute;
  bottom: 6px;
  left: 18px;
  width: 3px;
  height: 20px;
  border-radius: 999px;
  background: #eaf5d8;
  transform: rotate(-10deg);
}

.brand-mark-leaf {
  position: absolute;
  top: 8px;
  width: 15px;
  height: 11px;
  border-radius: 100% 0 100% 0;
  background: #e8f4d6;
}

.brand-mark-leaf-left {
  left: 7px;
  transform: rotate(-12deg);
}

.brand-mark-leaf-right {
  right: 6px;
  transform: rotate(65deg) scale(0.9);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.privacy-dot,
.eyebrow-dot,
.focus-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(75, 149, 96, 0.11);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--green-deep);
  box-shadow: 0 8px 18px rgba(36, 88, 60, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: #1d4b32;
  box-shadow: 0 12px 24px rgba(36, 88, 60, 0.22);
}

.button-ghost {
  color: var(--green-deep);
  background: transparent;
  border-color: var(--line-strong);
}

.button-ghost:hover:not(:disabled),
.button-soft:hover:not(:disabled) {
  background: var(--surface-soft);
  border-color: var(--green-light);
}

.button-soft {
  color: var(--green-dark);
  background: var(--surface-soft);
  border-color: transparent;
}

.button-outline {
  min-height: 38px;
  padding: 0 14px;
  color: var(--green-dark);
  background: transparent;
  border-color: var(--line-strong);
  font-size: 12px;
}

.button-outline:hover:not(:disabled) {
  background: var(--surface-soft);
}

.welcome-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  align-items: center;
  gap: 54px;
  min-height: 330px;
  margin-bottom: 28px;
}

.welcome-copy {
  padding: 15px 0 16px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-small {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.welcome-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.welcome-copy h1 em {
  display: block;
  color: var(--green);
  font-style: normal;
}

.welcome-description {
  max-width: 550px;
  margin: 22px 0 26px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-art {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid rgba(207, 224, 203, 0.75);
  border-radius: 42% 42% 24% 24% / 36% 36% 24% 24%;
  background: linear-gradient(145deg, #f5f8e7 2%, #e4f2d5 100%);
  box-shadow: var(--shadow);
}

.hero-art::after {
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 220px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  content: "";
}

.art-sun {
  position: absolute;
  top: 39px;
  right: 78px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 13px rgba(230, 184, 82, 0.1), 0 0 0 26px rgba(230, 184, 82, 0.07);
}

.art-spark {
  position: absolute;
  z-index: 1;
  color: #be8e32;
  font-weight: 800;
}

.art-spark-one {
  top: 51px;
  right: 167px;
  font-size: 19px;
}

.art-spark-two {
  top: 112px;
  right: 45px;
  font-size: 30px;
}

.art-hill {
  position: absolute;
  bottom: -84px;
  width: 130%;
  height: 190px;
  border-radius: 50% 50% 0 0;
  transform: rotate(-6deg);
}

.art-hill-back {
  left: -10%;
  background: #c8e3b7;
}

.art-hill-front {
  right: -28%;
  bottom: -112px;
  background: #a7d09e;
  transform: rotate(9deg);
}

.art-card {
  position: absolute;
  z-index: 3;
  top: 87px;
  left: 52px;
  display: grid;
  gap: 5px;
  width: 178px;
  padding: 17px 18px 15px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.77);
  box-shadow: 0 16px 30px rgba(65, 107, 65, 0.12);
  transform: rotate(-7deg);
  backdrop-filter: blur(6px);
}

.art-card-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.art-card-value {
  color: var(--green-deep);
  font-size: 25px;
  font-weight: 800;
}

.art-card-value b {
  font-weight: 800;
}

.art-card-line {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
}

.art-card-line i {
  display: block;
  width: 17px;
  border-radius: 4px 4px 2px 2px;
  background: #9bcf93;
}

.art-card-line i:nth-child(1) { height: 8px; }
.art-card-line i:nth-child(2) { height: 13px; }
.art-card-line i:nth-child(3) { height: 10px; }
.art-card-line i:nth-child(4) { height: 17px; background: var(--green); }
.art-card-line i:nth-child(5) { height: 15px; }
.art-card-line i:nth-child(6) { height: 20px; background: var(--yellow); }

.art-sprout {
  position: absolute;
  z-index: 4;
  right: 73px;
  bottom: 51px;
  width: 60px;
  height: 80px;
  transform: rotate(7deg);
}

.sprout-stem {
  position: absolute;
  bottom: 0;
  left: 28px;
  width: 5px;
  height: 62px;
  border-radius: 99px;
  background: var(--green-dark);
  transform: rotate(14deg);
  transform-origin: bottom;
}

.sprout-leaf {
  position: absolute;
  top: 14px;
  width: 31px;
  height: 20px;
  border-radius: 100% 0 100% 0;
  background: var(--green-dark);
}

.sprout-leaf-left {
  left: 2px;
  transform: rotate(-20deg);
}

.sprout-leaf-right {
  right: 1px;
  top: 3px;
  transform: rotate(67deg);
}

.live-strip {
  display: flex;
  align-items: center;
  gap: 27px;
  min-height: 76px;
  margin-bottom: 16px;
  padding: 17px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.live-time-block,
.live-date-block {
  display: flex;
  align-items: center;
  gap: 11px;
}

.live-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 12px;
  color: var(--green-dark);
  background: var(--surface-soft);
  font-size: 22px;
}

.live-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.live-time-block strong {
  display: block;
  min-width: 110px;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  letter-spacing: 0.04em;
}

.live-date-block {
  padding-left: 27px;
  border-left: 1px solid var(--line);
}

.live-date-block strong,
.live-date-block span {
  display: block;
}

.live-date-block strong {
  font-size: 13px;
}

.live-date-block span {
  color: var(--muted);
  font-size: 12px;
}

.live-status {
  margin: 0 0 0 auto;
  color: var(--ink-soft);
  font-size: 12px;
}

.salary-preview {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 800;
}

.salary-preview:hover {
  border-color: var(--green);
  background: var(--green-light);
}

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

.metric-card,
.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-small);
}

.metric-card {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  padding: 21px 20px 18px;
}

.metric-card-primary {
  color: #fff;
  border-color: var(--green-deep);
  background: var(--green-deep);
  box-shadow: 0 16px 32px rgba(36, 88, 60, 0.18);
}

.metric-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-card-primary .metric-label,
.metric-card-primary .metric-helper {
  color: rgba(236, 249, 225, 0.72);
}

.metric-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  color: var(--green-dark);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 800;
}

.metric-icon-coin {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.metric-icon-clock {
  color: #9f6b21;
  background: #fff1d4;
}

.metric-icon-chart {
  color: #765c90;
  background: #f0e9f6;
}

.metric-value {
  display: block;
  margin-top: 15px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.metric-card-primary .metric-value {
  color: #fff;
}

.metric-value-countdown {
  font-size: 22px;
  letter-spacing: 0.01em;
}

.metric-helper {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.metric-sparkline {
  position: absolute;
  right: 18px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 23px;
  opacity: 0.7;
}

.metric-sparkline i {
  display: block;
  width: 4px;
  border-radius: 4px;
  background: rgba(209, 241, 180, 0.7);
}

.metric-sparkline i:nth-child(1) { height: 6px; }
.metric-sparkline i:nth-child(2) { height: 11px; }
.metric-sparkline i:nth-child(3) { height: 8px; }
.metric-sparkline i:nth-child(4) { height: 15px; }
.metric-sparkline i:nth-child(5) { height: 12px; }
.metric-sparkline i:nth-child(6) { height: 20px; }
.metric-sparkline i:nth-child(7) { height: 17px; }
.metric-sparkline i:nth-child(8) { height: 23px; background: var(--yellow); }

.panel-card {
  padding: 24px;
}

.progress-panel {
  margin-bottom: 16px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

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

.progress-percent {
  color: var(--green);
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
}

.progress-track {
  position: relative;
  height: 15px;
  margin: 28px 0 13px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7efe0;
}

.progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #80b778, var(--green), #e1b34e);
  transition: width 500ms ease;
}

.progress-marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--green-deep);
  box-shadow: 0 1px 5px rgba(36, 88, 60, 0.3);
  transform: translate(-50%, -50%);
  transition: left 500ms ease;
}

.progress-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
}

.progress-meta b,
.progress-meta small {
  display: block;
}

.progress-meta b {
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.progress-meta small {
  margin-top: 2px;
}

.progress-meta-center {
  color: var(--green-dark);
  font-weight: 700;
  text-align: center;
}

.progress-meta-end {
  text-align: right;
}

.tool-grid,
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.break-card,
.encouragement-card,
.schedule-card,
.formula-card {
  min-height: 240px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.status-badge-idle {
  color: var(--muted);
  background: #eef3eb;
}

.status-badge-active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 5px 13px rgba(75, 149, 96, 0.2);
}

.status-badge-done {
  color: #8b662a;
  background: #fff1d6;
}

.break-timer {
  margin: 23px 0 6px;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
  font-size: 35px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.panel-note {
  max-width: 410px;
  min-height: 38px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.break-actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}

.encouragement-card {
  position: relative;
  overflow: hidden;
  background: #fff9e9;
  border-color: #f1e4c6;
}

.encouragement-card::after {
  position: absolute;
  right: -35px;
  bottom: -74px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(214, 161, 77, 0.21);
  border-radius: 50%;
  content: "";
}

.paperclip {
  width: 15px;
  height: 27px;
  border: 3px solid #c6914a;
  border-bottom-color: transparent;
  border-radius: 10px 10px 0 0;
  transform: rotate(34deg);
}

.encouragement-card blockquote {
  position: relative;
  z-index: 1;
  max-width: 450px;
  min-height: 70px;
  margin: 27px 0 18px;
  color: #6a522c;
  font-size: clamp(19px, 2.7vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.text-button {
  padding: 0;
  color: var(--green-dark);
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.text-button:hover:not(:disabled) {
  color: var(--green);
}

.schedule-list {
  margin: 26px 0 0;
}

.schedule-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-list > div:last-child {
  border-bottom: 0;
}

.schedule-list dt {
  color: var(--muted);
  font-size: 12px;
}

.schedule-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.formula-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, #f0f7eb, #fdfcf4);
}

.formula-card h2 {
  margin: 0;
  font-size: 20px;
}

.formula-card p {
  max-width: 370px;
  margin: 10px 0 17px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.formula-illustration {
  position: relative;
  flex: 0 0 112px;
  height: 120px;
}

.formula-coin {
  position: absolute;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 4px solid #d6a84c;
  border-radius: 50%;
  color: #9e702a;
  background: #ffe9a9;
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 8px 0 #f2d583;
}

.formula-coin-back {
  top: 20px;
  left: 6px;
  transform: rotate(-16deg);
}

.formula-coin-front {
  top: 43px;
  left: 44px;
  transform: rotate(12deg);
}

.formula-leaf {
  position: absolute;
  right: 1px;
  bottom: 10px;
  width: 43px;
  height: 25px;
  border-radius: 100% 0 100% 0;
  background: var(--green);
  transform: rotate(28deg);
}

.formula-leaf::after {
  position: absolute;
  left: 20px;
  bottom: -17px;
  width: 4px;
  height: 38px;
  border-radius: 5px;
  background: var(--green-dark);
  content: "";
  transform: rotate(-30deg);
  transform-origin: top;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 4px 0;
  color: var(--muted);
  font-size: 11px;
}

.signature,
.top-signature {
  color: var(--green-dark);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.top-signature {
  white-space: nowrap;
  font-size: 12px;
}

.focus-exit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid rgba(75, 149, 96, 0.22);
  border-radius: 14px;
  color: var(--green-dark);
  background: rgba(220, 239, 212, 0.72);
  font-size: 12px;
}

.focus-exit-bar > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.focus-pulse {
  width: 6px;
  height: 6px;
  animation: pulse 1.8s ease-in-out infinite;
}

.text-button-light {
  color: var(--green-deep);
}

body.focus-mode .welcome-overview {
  display: none;
}

body.focus-mode .focus-exit-bar {
  display: flex;
}

body.is-resting .break-card {
  border-color: rgba(75, 149, 96, 0.4);
  box-shadow: 0 16px 34px rgba(75, 149, 96, 0.16);
}

.toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 17px;
  border-radius: 14px;
  color: #fff;
  background: var(--green-deep);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.toast[hidden],
.focus-exit-bar[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  overflow: auto;
  place-items: center;
  padding: 24px;
  background: rgba(24, 53, 35, 0.45);
  backdrop-filter: blur(7px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 29px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(21, 49, 30, 0.27);
}

.modal-card-large {
  width: min(100%, 750px);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.modal-header h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.05em;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0 0 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 23px;
  line-height: 1;
}

.icon-button:hover {
  color: var(--green-deep);
  background: var(--green-light);
}

.form-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.form-section h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.form-section p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid-three {
  grid-template-columns: 1.1fr 1fr 1fr;
}

.form-grid-two {
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 7px;
  align-content: start;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.field input[type="number"],
.field input[type="time"] {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fcfefb;
  font-size: 14px;
  font-weight: 600;
}

.field input:invalid {
  box-shadow: none;
}

.field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.field-summary {
  min-height: 43px;
  padding: 1px 0 0;
}

.field-summary strong {
  color: var(--green-dark);
  font-size: 19px;
  line-height: 1.15;
}

.field-hint {
  margin-top: 12px !important;
  line-height: 1.55;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.section-title-row h3 {
  margin-bottom: 4px;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.switch-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: #d8e2d5;
  transition: background 160ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(25, 56, 35, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.switch-label input:checked + .switch {
  background: var(--green);
}

.switch-label input:checked + .switch::after {
  transform: translateX(18px);
}

.break-fields.is-disabled {
  opacity: 0.48;
}

.weekday-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.weekday-picker label {
  display: block;
  cursor: pointer;
}

.weekday-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.weekday-picker span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink-soft);
  background: #fcfefb;
  font-size: 13px;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.weekday-picker label:hover span {
  transform: translateY(-1px);
}

.weekday-picker input:checked + span {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
  box-shadow: 0 5px 12px rgba(75, 149, 96, 0.2);
}

.form-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #edc2aa;
  border-radius: 10px;
  color: #a65431 !important;
  background: #fff2eb;
  font-size: 12px !important;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.modal-actions-end {
  margin-top: 24px;
}

.explanation-content {
  display: grid;
  gap: 19px;
}

.explanation-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
  align-items: start;
}

.explanation-item > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 9px;
  color: var(--green-dark);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 800;
}

.explanation-item h3 {
  margin: 2px 0 4px;
  font-size: 14px;
}

.explanation-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.estimate-boundary {
  margin-top: 3px;
  padding: 14px 15px;
  border-left: 3px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  background: #fff9e7;
}

.estimate-boundary strong {
  color: #866326;
  font-size: 12px;
}

.estimate-boundary p {
  margin: 5px 0 0;
  color: #806a42;
  font-size: 11px;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(75, 149, 96, 0.34); }
  50% { box-shadow: 0 0 0 6px rgba(75, 149, 96, 0); }
}

@media (max-width: 980px) {
  .welcome-overview {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
    gap: 30px;
  }

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

  .metric-card {
    min-height: 145px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, var(--max-width));
    padding-top: 18px;
  }

  .topbar {
    align-items: flex-start;
    margin-bottom: 25px;
  }

  .header-actions {
    gap: 7px;
  }

  .privacy-pill {
    display: none;
  }

  .button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 12px;
  }

  .welcome-overview {
    display: block;
    min-height: 0;
    margin-bottom: 18px;
  }

  .welcome-copy {
    padding: 0;
  }

  .welcome-copy h1 {
    font-size: clamp(34px, 9vw, 52px);
  }

  .welcome-description {
    margin: 16px 0 20px;
    font-size: 13px;
  }

  .hero-art {
    min-height: 220px;
    margin: 28px 13px 4px;
    border-radius: 35% 35% 23% 23% / 32% 32% 23% 23%;
  }

  .art-card {
    top: 65px;
    left: 30px;
  }

  .art-sun {
    top: 28px;
    right: 55px;
    width: 55px;
    height: 55px;
  }

  .art-sprout {
    right: 42px;
    bottom: 30px;
    transform: scale(0.82) rotate(7deg);
    transform-origin: bottom right;
  }

  .live-strip {
    flex-wrap: wrap;
    gap: 12px 20px;
    min-height: 0;
    padding: 15px;
  }

  .live-date-block {
    padding-left: 20px;
  }

  .live-status {
    flex-basis: 100%;
    margin-left: 46px;
  }

  .tool-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .formula-card {
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 540px) {
  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .header-actions .button-ghost {
    padding-inline: 10px;
    font-size: 11px;
  }

  .live-status {
    margin-left: 0;
  }

  .salary-preview {
    margin-left: auto;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .metric-card {
    min-height: 142px;
    padding: 16px 14px 15px;
  }

  .metric-value {
    margin-top: 13px;
    font-size: 21px;
  }

  .metric-value-countdown {
    font-size: 18px;
  }

  .metric-helper {
    font-size: 10px;
  }

  .metric-icon {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .panel-card {
    padding: 20px 17px;
  }

  .progress-percent {
    font-size: 29px;
  }

  .progress-meta {
    grid-template-columns: 1fr 1fr;
  }

  .progress-meta-center {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 8px;
  }

  .progress-meta-end {
    text-align: right;
  }

  .break-timer {
    font-size: 28px;
  }

  .form-grid-three,
  .form-grid-two {
    grid-template-columns: 1fr;
  }

  .form-grid-two {
    margin-top: 12px;
  }

  .weekday-picker {
    gap: 5px;
  }

  .weekday-picker span {
    min-height: 38px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 10px;
  }

  .modal-card {
    max-height: calc(100vh - 20px);
    padding: 22px 17px;
    border-radius: 20px;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .focus-exit-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

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