:root {
  --bg: #f6efe5;
  --surface: rgba(255, 252, 247, 0.88);
  --surface-strong: #fffaf4;
  --ink: #2f241f;
  --muted: #715f56;
  --line: rgba(80, 52, 39, 0.12);
  --accent: #cb6d52;
  --accent-deep: #ab533a;
  --accent-soft: #f4d5c8;
  --left: #dd8e74;
  --right: #7f8db6;
  --bottle: #7aa783;
  --shadow: 0 18px 60px rgba(102, 72, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 28%),
    radial-gradient(circle at top right, rgba(224, 198, 186, 0.45), transparent 26%),
    linear-gradient(180deg, #f9f1e9 0%, var(--bg) 100%);
}

button {
  font: inherit;
}

.shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.shell > section + section,
.shell > section + footer,
.shell > footer + section {
  margin-top: 18px;
}

.site-footer,
.topnav {
  display: flex;
  align-items: center;
}

.site-footer {
  gap: 16px;
  padding: 6px 0 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.topnav a,
.site-footer a,
.site-footer p {
  color: var(--ink);
  text-decoration: none;
}

.topnav,
.site-footer nav {
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 22px;
  width: 100%;
  justify-content: center;
}

.topnav a,
.site-footer a {
  color: var(--muted);
}

.topnav a,
.topnav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.topnav a[aria-current="page"],
.topnav-dropdown[data-current="true"] > .topnav-trigger,
.topnav-dropdown[data-open="true"] > .topnav-trigger {
  background: rgba(255, 244, 240, 0.95);
  border-color: rgba(171, 83, 58, 0.18);
  color: var(--accent-deep);
}

.topnav-trigger {
  cursor: pointer;
  color: var(--muted);
}

.topnav-dropdown {
  position: relative;
}

[hidden] {
  display: none !important;
}

.topnav-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 160ms ease;
}

.topnav-dropdown[data-open="true"] .topnav-caret {
  transform: translateY(2px) rotate(-135deg);
}

.topnav-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: rgba(255, 252, 247, 0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.topnav-panel a {
  width: 100%;
  justify-content: flex-start;
  font-size: 0.9rem;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  padding: 24px 0;
}

.hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero-copy {
  min-width: 0;
}

.hero-header > [data-site-nav] {
  flex-shrink: 0;
}

.hero-nav {
  flex-shrink: 0;
  justify-content: flex-end;
}

.hero .eyebrow {
  margin-bottom: 10px;
}

.legal-hero {
  max-width: 68ch;
}

.eyebrow,
.section-label,
.today {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

h1,
h2 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.95;
  max-width: 12ch;
}

h2 {
  margin: 4px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.intro,
.seo-copy p,
.tips li,
.session-copy,
.session-list li,
.summary-totals,
#sharedContent {
  color: var(--muted);
  line-height: 1.5;
}

.intro {
  margin: 0;
  max-width: 58ch;
  font-size: 1.05rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.tracker {
  padding: 24px;
}

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

.side-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0 18px;
}

.side-button,
.primary-action,
.ghost-button {
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.side-button {
  padding: 18px 16px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.side-button[data-active="true"][data-side="left"] {
  background: #f6e0d8;
  box-shadow: inset 0 0 0 2px rgba(221, 142, 116, 0.45);
}

.side-button[data-active="true"][data-side="right"] {
  background: #e4e8f3;
  box-shadow: inset 0 0 0 2px rgba(127, 141, 182, 0.4);
}

.side-button[data-active="true"][data-side="bottle"] {
  background: #e2efe4;
  box-shadow: inset 0 0 0 2px rgba(122, 167, 131, 0.4);
}

.session-status {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 24px;
}

.contraction-status {
  gap: 18px;
}

.session-copy {
  margin: 0;
}

.status-copy-group {
  display: grid;
  gap: 8px;
}

.status-copy-group h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.1;
}

.state-pill,
.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state-pill {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.state-pill[data-active="true"] {
  background: rgba(244, 213, 200, 0.85);
  color: var(--accent-deep);
}

.timer {
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 0.95;
}

.live-session-stats {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.contraction-live-stats {
  align-items: stretch;
}

.live-detail-card {
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(80, 52, 39, 0.08);
}

.live-detail-value {
  margin: 8px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  line-height: 1.2;
}

.action-row {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.primary-action {
  width: 100%;
  padding: 20px 18px;
  background: var(--accent);
  color: white;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(171, 83, 58, 0.24);
}

.primary-action:hover,
.primary-action:focus-visible,
.side-button:hover,
.side-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-1px);
}

.primary-action[data-running="true"] {
  background: var(--accent-deep);
}

.tracker-secondary-action[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.storage-note,
.guideline-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.storage-note {
  margin-top: 14px;
  font-size: 0.95rem;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.quick-stats article {
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 22px;
}

.quick-stats span {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  margin-bottom: 6px;
}

.quick-stats p,
.tips ul,
.session-list,
.seo-copy h2,
.seo-copy p {
  margin: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 18px;
}

.contraction-summary-grid {
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.95fr);
}

.shared-layout {
  align-items: start;
  margin-top: 0;
}

.history-layout {
  align-items: start;
  margin-top: 0;
}

.ad-slot,
.info-card {
  padding: 22px;
}

.ad-slot {
}

.ad-placeholder {
  min-height: 160px;
  margin-top: 12px;
  padding: 22px;
  border: 2px dashed rgba(80, 52, 39, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.5;
}

.summary-grid > .card {
  padding: 22px;
}

.recent-card {
  padding: 22px;
}

.ghost-button {
  padding: 12px 16px;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 700;
}

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

.summary-actions .inline-button-link {
  min-height: 44px;
}

.summary-totals {
  margin: 18px 0;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contraction-totals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.side-total {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.side-total strong {
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  min-height: 2.3em;
}

.side-total span {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
}

.side-total-left {
  box-shadow: inset 0 0 0 1px rgba(221, 142, 116, 0.22);
}

.side-total-right {
  box-shadow: inset 0 0 0 1px rgba(127, 141, 182, 0.22);
}

.side-total-bottle {
  box-shadow: inset 0 0 0 1px rgba(122, 167, 131, 0.22);
}

.contraction-total {
  box-shadow: inset 0 0 0 1px rgba(171, 83, 58, 0.16);
}

.session-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
}

.contraction-list {
  margin-top: 10px;
  max-height: calc((10 * 98px) + (9 * 12px));
  overflow-y: auto;
  padding-right: 6px;
}

.session-list li {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 20px;
  border: 1px solid rgba(73, 46, 32, 0.08);
}

.manual-entry {
  margin-bottom: 18px;
  padding: 18px;
}

.manual-entry h3 {
  margin: 4px 0 0;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.manual-time-row {
  display: grid;
}

.manual-time-input {
  max-width: 180px;
}

.session-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.session-details {
  min-width: 0;
}

.session-summary-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.session-time-range {
  color: var(--muted);
}

.session-list strong {
  color: var(--ink);
}

.session-breakdown {
  display: inline-grid;
  gap: 4px;
  width: fit-content;
}

.contraction-breakdown {
  margin-top: 10px;
}

.session-breakdown div {
  display: grid;
  align-items: center;
  grid-template-columns: auto auto;
  gap: 20px;
}

.session-breakdown div span:last-child {
  text-align: right;
}

.session-delete {
  border: 1px solid rgba(171, 83, 58, 0.18);
  border-radius: 14px;
  background: rgba(255, 244, 240, 0.95);
  color: var(--accent-deep);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.session-editor {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.session-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.session-editor-field {
  display: grid;
  gap: 6px;
}

.duration-inputs {
  display: inline-flex;
  align-items: stretch;
}

.duration-input-group {
  display: block;
}

.duration-input-group + .duration-input-group {
  margin-left: -1px;
}

.duration-input {
  display: block;
  width: 4.5rem;
  max-width: 4.5rem;
  flex: 0 0 4.5rem;
  min-width: 0;
  box-sizing: border-box;
}

.duration-input-group:first-child .duration-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.duration-input-group:last-child .duration-input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.session-editor-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.session-editor-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(80, 52, 39, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
}

.session-edit {
  border: 1px solid rgba(80, 52, 39, 0.12);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.95);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.session-save,
.session-cancel,
.session-part-clear {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.session-save {
  border: 1px solid rgba(171, 83, 58, 0.18);
  background: rgba(255, 244, 240, 0.95);
  color: var(--accent-deep);
}

.session-cancel {
  border: 1px solid rgba(80, 52, 39, 0.12);
  background: rgba(255, 252, 247, 0.95);
  color: var(--ink);
}

.session-part-clear {
  border: 1px solid rgba(171, 83, 58, 0.18);
  background: rgba(255, 244, 240, 0.95);
  color: var(--accent-deep);
}


.tips ul {
  padding-left: 18px;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.guideline-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.guideline-card h2 {
  margin-top: 0;
}

.shared-view {
  padding: 22px;
}

.history-chart-card,
.history-list-card {
  padding: 22px;
}

.history-chart {
}

.history-chart-shell {
  --history-axis-left: 18px;
  --history-plot-left-inset: 60px;
  --history-x-columns: 7;
  --history-plot-top: 4.2857%;
  --history-plot-height: 85.7143%;
}

.history-chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.history-chart-card .card-heading > div {
  width: 100%;
}

.history-chart-range-title {
  white-space: nowrap;
  text-align: center;
}

.history-nav-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.history-nav-button[disabled] {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.history-chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-left: var(--history-axis-left);
}

.history-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.history-legend-swatch {
  width: 18px;
  height: 0;
  border-top-width: 3px;
  border-top-style: solid;
  border-radius: 999px;
}

.history-line-chart {
  display: grid;
  gap: 10px;
}

.history-chart-stage {
  position: relative;
  padding-left: 36px;
}

.history-chart-stage.is-empty {
  min-height: 120px;
}

.history-zoom-rail {
  position: absolute;
  top: var(--history-plot-top);
  height: var(--history-plot-height);
  left: 0;
  width: 30px;
  z-index: 1;
  overflow: visible;
}

.history-zoom-button {
  position: absolute;
  left: 50%;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  transform: translateX(-50%);
}

.history-zoom-button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.history-zoom-button[data-history-zoom="-1"] {
  top: 0;
}

.history-zoom-button[data-history-zoom="1"] {
  bottom: 0;
}

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

.history-grid-line {
  stroke: rgba(80, 52, 39, 0.12);
  stroke-width: 1;
}

.history-grid-label {
  fill: var(--muted);
  font-size: 11px;
}

.history-axis-span-label {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.history-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-segment {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition:
    stroke-width 120ms ease,
    opacity 120ms ease;
}

.history-interval-segment {
  stroke-width: 4;
  opacity: 0.9;
}

.history-segment.is-active {
  stroke-width: 9;
}

.history-interval-segment.is-active {
  stroke-width: 6;
  opacity: 1;
}

.history-hover-row {
  outline: none;
}

.history-hover-hit {
  stroke: transparent;
  stroke-width: 18;
  stroke-linecap: round;
}

.history-hover-label {
  opacity: 0;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.history-hover-row:hover .history-hover-label,
.history-hover-row:focus-visible .history-hover-label {
  opacity: 1;
}

.history-hover-label-box {
  fill: rgba(255, 250, 244, 0.96);
  stroke: rgba(80, 52, 39, 0.12);
  stroke-width: 1;
}

.history-hover-label-text {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.history-line-left,
.history-point-left {
  stroke: var(--left);
  border-color: var(--left);
}

.history-line-right,
.history-point-right {
  stroke: var(--right);
  border-color: var(--right);
}

.history-line-bottle,
.history-point-bottle {
  stroke: var(--bottle);
  border-color: var(--bottle);
}

.history-point {
  fill: var(--surface-strong);
  stroke-width: 3;
  transition:
    r 140ms ease,
    stroke-width 140ms ease,
    fill 140ms ease;
  pointer-events: none;
}

.history-day-hit-area {
  fill: transparent;
  cursor: pointer;
}

.history-day-points:hover .history-point,
.history-day-points.is-selected .history-point {
  r: 5.5;
  stroke-width: 4.5;
}

.history-x-axis {
  display: grid;
  grid-template-columns: repeat(var(--history-x-columns), minmax(0, 1fr));
  gap: 6px;
  padding-left: var(--history-plot-left-inset);
}

.history-x-label {
  border: 0;
  padding: 4px 2px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  text-align: center;
  cursor: pointer;
}

.history-x-label.is-selected {
  color: var(--ink);
  font-weight: 700;
}

.history-x-label.is-static {
  cursor: default;
}

.history-groups {
  display: grid;
  gap: 18px;
}

.history-day {
  padding: 0;
}

.history-empty {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.history-chart-stage.is-empty .history-empty {
  margin: 0;
  min-height: 120px;
}

.is-hidden {
  display: none;
}

.seo-copy {
  max-width: 68ch;
}

.seo-copy.card {
  display: grid;
  gap: 14px;
  padding: 22px;
  max-width: none;
}

.seo-copy > * {
  max-width: 68ch;
}

.seo-copy.card > * {
  max-width: none;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  padding-top: 10px;
  color: var(--muted);
}

.footer-copy {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
}

.inline-link {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.inline-button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.shared-action-button {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  margin: 4px 0 0;
  line-height: 1;
  box-sizing: border-box;
}

.continue-actions {
  margin: 16px 0 8px;
}

.continue-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.faq-card {
  padding: 22px;
}

.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.faq-item + .faq-item {
  padding-top: 18px;
  border-top: 1px solid rgba(80, 52, 39, 0.12);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  line-height: 1.2;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.reset-card {
  padding: 22px;
}

.reset-button,
.modal-secondary-button {
  background: rgba(255, 250, 244, 0.94);
}

.empty-list-state p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(100% - 24px, 420px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(47, 36, 31, 0.96);
  color: #fffaf4;
  border-radius: 22px;
  box-shadow: 0 18px 46px rgba(47, 36, 31, 0.28);
  z-index: 40;
}

.toast-title,
.toast-copy {
  margin: 0;
}

.toast-title {
  font-weight: 700;
}

.toast-copy {
  margin-top: 4px;
  color: rgba(255, 250, 244, 0.82);
  line-height: 1.45;
}

.toast-button {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fffaf4;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(47, 36, 31, 0.36);
  z-index: 30;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(100% - 24px, 520px);
  padding: 22px;
  transform: translate(-50%, -50%);
  z-index: 31;
}

.modal-fields {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sr-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .hero-header {
    flex-wrap: wrap;
  }

  .hero-header > [data-site-nav] {
    order: -1;
    width: 100%;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .topnav {
    width: 100%;
    gap: 10px;
  }

  .topnav-dropdown {
    width: 100%;
  }

  .topnav a,
  .topnav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 8px 11px;
    font-size: 0.95rem;
  }

  .topnav-panel {
    position: static;
    min-width: 0;
    margin-top: 8px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .contraction-totals {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .shell {
    padding-inline: 12px;
  }

  .tracker,
  .summary-grid > .card,
  .shared-view {
    padding: 18px;
    border-radius: 24px;
  }

  .card-heading {
    flex-direction: column;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .history-x-label {
    font-size: 0.72rem;
  }

  .history-chart-heading {
    gap: 6px;
  }

  .history-chart-range-title {
    width: 100%;
    font-size: 1.2rem;
    white-space: normal;
  }

  .history-nav-button {
    min-width: 38px;
    min-height: 38px;
    padding: 0 10px;
  }

  .history-chart-stage {
    padding-left: 30px;
  }

  .history-zoom-rail {
    width: 24px;
  }

  .history-zoom-button {
    width: 24px;
    min-width: 24px;
    min-height: 24px;
    font-size: 0.92rem;
  }

  .history-axis-span-label {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .side-picker {
    gap: 10px;
  }

  .session-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-session-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .live-detail-card {
    min-width: 0;
  }

  .session-actions {
    width: 100%;
  }

  .session-editor {
    width: 100%;
    min-width: 0;
  }

  .modal {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
  }

}
