:root {
  --ink: #17222c;
  --muted: #5d6a75;
  --line: #d9e2ea;
  --paper: #f6f9fc;
  --white: #ffffff;
  --blue: #2864d8;
  --cyan: #20a7b8;
  --green: #36a269;
  --yellow: #f4b942;
  --coral: #ee6c4d;
  --shadow: 0 20px 60px rgba(23, 34, 44, 0.14);
  --content-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(clamp(18px, 4vw, 56px), calc((100vw - var(--content-max)) / 2));
  background: rgba(246, 249, 252, 0.9);
  border-bottom: 1px solid rgba(217, 226, 234, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-nav a:hover,
.tour-trigger:hover {
  color: var(--ink);
  background: var(--white);
}

.tour-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
}

.tour-trigger svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  width: min(var(--content-max), calc(100% - clamp(36px, 8vw, 120px)));
  min-height: min(720px, calc(100svh - 128px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 62px) 0 clamp(28px, 4vw, 44px);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4.2rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-text {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions,
.export-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.button {
  padding: 13px 20px;
}

.button.primary,
.small-button {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(40, 100, 216, 0.25);
}

.button.secondary,
.small-button.ghost {
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero-visual img {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  filter: drop-shadow(0 24px 48px rgba(23, 34, 44, 0.2));
}

.orbit {
  position: absolute;
  border: 2px solid rgba(40, 100, 216, 0.16);
  border-radius: 50%;
}

.orbit.one {
  width: min(430px, 100%);
  height: auto;
  aspect-ratio: 1;
}

.orbit.two {
  width: min(300px, 72%);
  height: auto;
  aspect-ratio: 1;
  border-color: rgba(32, 167, 184, 0.22);
}

.formula-chip {
  position: absolute;
  z-index: 3;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.chip-a {
  top: 14%;
  right: 10%;
  border-left: 6px solid var(--yellow);
}

.chip-b {
  left: 6%;
  bottom: 24%;
  border-left: 6px solid var(--cyan);
}

.chip-c {
  right: 16%;
  bottom: 12%;
  border-left: 6px solid var(--coral);
}

.section {
  padding: clamp(56px, 7vw, 100px) max(clamp(18px, 6vw, 82px), calc((100vw - var(--content-max)) / 2));
}

.intro-band,
.roadmap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.intro-band p:last-child,
.roadmap-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.12rem;
  line-height: 1.7;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(23, 34, 44, 0.07);
}

.app-card.featured {
  border-color: rgba(40, 100, 216, 0.34);
  box-shadow: var(--shadow);
}

.app-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 950;
  font-size: 1.5rem;
}

.status {
  align-self: flex-start;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.status.ready {
  color: #0e5131;
  background: rgba(54, 162, 105, 0.16);
}

.status.soon {
  color: #77520d;
  background: rgba(244, 185, 66, 0.18);
}

.app-card p:not(.status) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 900;
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-list span {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px clamp(18px, 6vw, 82px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, var(--content-max));
  color: inherit;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: center;
}

.app-body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: #edf3f8;
}

.app-header {
  position: relative;
  padding-block: 10px;
}

.graph-app {
  display: grid;
  grid-template-columns: minmax(280px, clamp(300px, 33vw, 430px)) minmax(0, 1fr);
  align-items: start;
  flex: 1 0 auto;
  gap: clamp(10px, 1.6vw, 18px);
  padding: clamp(10px, 1.6vw, 18px);
}

.tool-panel,
.canvas-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(23, 34, 44, 0.08);
}

.tool-panel {
  overflow: visible;
  max-height: none;
  padding: clamp(14px, 1.8vw, 22px);
}

.panel-title h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.65rem);
  line-height: 1.08;
}

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

.tour-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(40, 100, 216, 0.22);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--blue);
  background: rgba(40, 100, 216, 0.08);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
}

.tour-button:hover,
.tour-button:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.controls {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

fieldset {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

legend {
  padding: 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.fieldset-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: min(300px, 100%);
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.fieldset-toggle:hover {
  color: var(--blue);
  background: rgba(40, 100, 216, 0.08);
}

.fieldset-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(40, 100, 216, 0.26);
  border-radius: 6px;
  color: var(--blue);
  background: rgba(40, 100, 216, 0.08);
  font-size: 1rem;
  line-height: 1;
  font-weight: 950;
}

.fieldset-body {
  display: grid;
  gap: 0;
}

fieldset.is-collapsed {
  background: #f8fbfd;
}

fieldset.is-collapsed .fieldset-body {
  display: none !important;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--white);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--blue);
}

input[type="color"] {
  width: 54px;
  min-height: 42px;
  padding: 4px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

fieldset > label:first-of-type {
  margin-top: 4px;
}

.style-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 4px;
}

.check-label {
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.check-label input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.data-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.data-toolbar .small-button {
  width: 100%;
  gap: 8px;
  padding-inline: 10px;
}

.button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.small-button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.86rem;
}

.data-table-wrap {
  max-height: none;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fafc;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.data-table input {
  min-height: 36px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: #9d2b25;
  background: rgba(238, 108, 77, 0.14);
  cursor: pointer;
  font-weight: 950;
}

.canvas-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(12px, 1.6vw, 18px);
}

.canvas-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.canvas-toolbar > div {
  min-width: 0;
}

.canvas-toolbar h2 {
  font-size: clamp(1.2rem, 2.35vw, 2.2rem);
  line-height: 1.12;
}

.hint {
  flex: 0 0 auto;
  margin: 0;
  padding: 9px 12px;
  border-radius: 999px;
  color: #14515a;
  background: rgba(32, 167, 184, 0.14);
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
}

.canvas-shell {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #dce7f0;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.52) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.52) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.52) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.52) 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

canvas {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70svh, 780px);
  height: auto;
  background: var(--white);
}

.graph-tour-layer[hidden] {
  display: none;
}

.graph-tour-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.graph-tour-highlight {
  position: fixed;
  z-index: 101;
  border: 3px solid #8ed8e3;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(10, 19, 28, 0.68), 0 18px 48px rgba(10, 19, 28, 0.26);
  transition: inset 0.18s ease, width 0.18s ease, height 0.18s ease;
}

.graph-tour-card {
  position: fixed;
  z-index: 102;
  width: min(340px, calc(100vw - 28px));
  border: 1px solid rgba(217, 226, 234, 0.92);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 22px 70px rgba(10, 19, 28, 0.32);
  pointer-events: auto;
}

.graph-tour-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.graph-tour-card .graph-tour-kicker {
  margin: 0 44px 8px 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.graph-tour-card h2 {
  margin-right: 38px;
  font-size: 1.22rem;
  line-height: 1.16;
}

.graph-tour-card p {
  color: var(--muted);
  line-height: 1.55;
}

.graph-tour-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.graph-tour-actions .button {
  flex: 1 1 0;
  min-height: 40px;
  padding: 10px 12px;
}

.timer-page {
  min-height: 100svh;
}

.timer-app {
  display: grid;
  flex: 1 0 auto;
  gap: clamp(8px, 1.2vw, 12px);
  min-width: 0;
  padding: clamp(8px, 1.2vw, 12px);
  overflow-x: hidden;
}

.timer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.26fr);
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  min-width: 0;
  padding: clamp(14px, 2.2vw, 20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(23, 34, 44, 0.08);
}

.timer-hero h1 {
  max-width: 760px;
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  line-height: 1.04;
}

.timer-hero > *,
.timer-data-header > * {
  min-width: 0;
}

.timer-hero .hero-text {
  margin-top: clamp(8px, 1.4vw, 12px);
  font-size: clamp(0.92rem, 1.35vw, 1.02rem);
  line-height: 1.35;
}

.timer-summary {
  display: grid;
  gap: 6px;
  justify-items: end;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: clamp(14px, 2.2vw, 18px);
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.timer-summary span {
  font-size: 0.82rem;
  font-weight: 850;
  opacity: 0.88;
}

.timer-summary strong {
  max-width: 100%;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.timer-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1fr);
  gap: 18px;
  align-items: start;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.timer-panel,
.timer-data-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(23, 34, 44, 0.08);
}

.timer-panel {
  display: grid;
  gap: clamp(10px, 1.7vw, 16px);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(14px, 2.6vw, 22px);
}

.timer-display {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: clamp(88px, 13vw, 142px);
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(40, 100, 216, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 252, 0.94)),
    radial-gradient(circle at top left, rgba(32, 167, 184, 0.18), transparent 36%);
  font-size: clamp(2.1rem, 6.8vw, 4.2rem);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-align: center;
  overflow: hidden;
}

.timer-status {
  margin-top: -4px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.timer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.timer-actions .button,
.timer-actions .small-button {
  min-height: 48px;
  padding-inline: clamp(12px, 2vw, 18px);
  white-space: normal;
}

.timer-main {
  font-size: 1rem;
}

.timer-tools {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.timer-data-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 20px);
}

.timer-data-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.timer-data-header h2 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.timer-table-wrap {
  position: relative;
  min-height: clamp(132px, 22svh, 190px);
  max-height: min(32svh, 320px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.timer-table th,
.timer-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.timer-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f7fafc;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.timer-table td {
  font-weight: 800;
}

.timer-table td:nth-child(2),
.timer-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  max-width: 440px;
  margin: auto;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.empty-state[hidden] {
  display: none;
}

.timer-export-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.timer-export-actions .button {
  flex: 1 1 180px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

.timer-page .tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  color: var(--ink);
  background: rgba(8, 15, 24, 0.72);
  backdrop-filter: blur(2px);
}

.timer-page .tour-overlay[hidden] {
  display: none;
}

.timer-page .tour-highlight {
  position: fixed;
  z-index: 101;
  border: 3px solid var(--yellow);
  border-radius: 12px;
  box-shadow:
    0 0 0 9999px rgba(8, 15, 24, 0.58),
    0 0 0 7px rgba(244, 185, 66, 0.24),
    0 18px 42px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  transition: inset 180ms ease, width 180ms ease, height 180ms ease;
}

.timer-page .tour-card {
  position: fixed;
  z-index: 102;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid rgba(217, 226, 234, 0.9);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

.timer-page .tour-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  line-height: 1.15;
}

.timer-page .tour-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.timer-page .tour-progress {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timer-page .tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.timer-page .tour-actions-group {
  display: inline-flex;
  gap: 8px;
}

.timer-page .tour-actions .small-button {
  min-height: 36px;
}

@media (max-width: 980px) {
  .hero,
  .intro-band,
  .roadmap,
  .graph-app,
  .timer-hero,
  .timer-workbench {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    width: min(var(--content-max), calc(100% - 36px));
  }

  .hero-visual {
    min-height: 420px;
  }

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

  .tool-panel {
    max-height: none;
  }

  .canvas-panel {
    order: -1;
  }

  .timer-summary {
    justify-items: start;
  }

  .timer-workbench {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand span {
    white-space: normal;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 4px;
  }

    .main-nav a {
      padding: 8px 10px;
      font-size: 0.88rem;
    }

    .tour-trigger {
      padding: 8px 10px;
      font-size: 0.88rem;
    }

    .main-nav a i {
      font-size: 0.9em;
    }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.9rem);
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-visual img {
    width: min(86vw, 360px);
  }

  .orbit.one {
    width: 330px;
    height: 330px;
  }

  .orbit.two {
    width: 240px;
    height: 240px;
  }

  .formula-chip {
    font-size: 0.82rem;
  }

  .two-col,
  .toggle-grid,
  .roadmap-list {
    grid-template-columns: 1fr;
  }

  .graph-app {
    padding: 10px;
  }

  .canvas-toolbar {
    flex-direction: column;
    gap: 10px;
  }

  .hint {
    align-self: flex-start;
  }

  .timer-app {
    padding: 10px;
  }

  .timer-hero {
    padding: 16px;
  }

  .timer-hero h1 {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  .timer-display {
    min-height: clamp(86px, 26vw, 126px);
    font-size: clamp(2rem, 14vw, 3.4rem);
  }

  .timer-actions {
    grid-template-columns: 1fr;
  }

  .timer-data-header,
  .timer-export-actions {
    flex-direction: column;
  }

  .timer-data-header .small-button,
  .timer-export-actions .button {
    width: 100%;
  }

  .timer-table-wrap {
    max-height: min(32svh, 300px);
  }

  .timer-table th,
  .timer-table td {
    padding: 9px 8px;
    font-size: 0.86rem;
  }

  .timer-table th:nth-child(3),
  .timer-table td:nth-child(3) {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    gap: 9px;
    font-size: 0.95rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .graph-app {
    padding: 8px;
  }

  .tool-panel,
  .canvas-panel {
    padding: 12px;
  }

  .panel-title h1 {
    font-size: 1.5rem;
  }

  .panel-title-row {
    flex-direction: column;
    gap: 10px;
  }

  .tour-button {
    width: 100%;
  }

  .controls {
    gap: 12px;
    margin-top: 16px;
  }

  fieldset {
    padding: 12px;
  }

  label {
    font-size: 0.82rem;
  }

  input,
  select {
    min-height: 40px;
  }

  .data-toolbar,
  .export-actions {
    grid-template-columns: 1fr;
  }

  .data-toolbar {
    display: grid;
  }

  .export-actions .button {
    width: 100%;
  }

  .canvas-toolbar h2 {
    font-size: 1.12rem;
  }

  .hint {
    max-width: 100%;
    border-radius: 8px;
    font-size: 0.8rem;
  }

  canvas {
    max-height: 58svh;
  }

  .site-footer {
    padding: 22px 14px;
    font-size: 0.88rem;
  }

  .graph-tour-card {
    padding: 16px;
  }

  .graph-tour-actions {
    flex-direction: column;
  }

  .timer-app {
    gap: 8px;
    padding: 8px;
  }

  .timer-hero,
  .timer-panel,
  .timer-data-panel {
    padding: 12px;
  }

  .timer-hero .eyebrow,
  .timer-data-header .eyebrow {
    margin-bottom: 6px;
    font-size: 0.68rem;
  }

  .timer-hero h1 {
    font-size: clamp(1.25rem, 5.8vw, 1.75rem);
  }

  .timer-hero .hero-text {
    margin-top: 8px;
    max-width: 34ch;
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .timer-summary {
    padding: 12px;
  }

  .timer-display {
    min-height: 82px;
    padding: 10px 6px;
    font-size: clamp(1.58rem, 11vw, 2.25rem);
  }

  .timer-actions .button,
  .timer-actions .small-button {
    min-height: 42px;
  }

  .timer-data-header h2 {
    font-size: 1.18rem;
  }

  .timer-table-wrap {
    min-height: 132px;
    max-height: min(30svh, 250px);
  }

  .empty-state {
    padding: 14px;
    font-size: 0.88rem;
    line-height: 1.42;
  }
}

@media (max-width: 360px) {
  .site-header {
    gap: 8px;
  }

  .main-nav a {
    padding: 7px 8px;
    font-size: 0.8rem;
  }

  .tour-trigger {
    padding: 7px 8px;
    font-size: 0.8rem;
  }

  .timer-hero h1 {
    font-size: clamp(1.14rem, 6.4vw, 1.42rem);
  }

  .timer-hero .hero-text {
    font-size: 0.84rem;
  }

  .timer-summary strong {
    font-size: 1.18rem;
  }

  .timer-display {
    font-size: clamp(1.42rem, 10vw, 2rem);
  }

  .timer-table th,
  .timer-table td {
    padding-inline: 7px;
    font-size: 0.8rem;
  }

  .timer-page .tour-card {
    padding: 14px;
  }

  .timer-page .tour-actions,
  .timer-page .tour-actions-group {
    width: 100%;
  }

  .timer-page .tour-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .timer-page .tour-actions .small-button {
    flex: 1;
  }
}

@media print {
  .site-header,
  .tool-panel,
  .canvas-toolbar {
    display: none;
  }

  .graph-app,
  .canvas-panel {
    display: block;
    padding: 0;
    min-height: auto;
    box-shadow: none;
    border: 0;
    background: var(--white);
  }

  .canvas-shell {
    overflow: visible;
    border: 0;
    background: var(--white);
  }

  canvas {
    width: 100%;
  }
}

/* SDLF apps responsive audit hardening - 2026-05-22 */
html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
}

*, *::before, *::after {
  min-width: 0;
}

button,
input,
select,
textarea,
a {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(40, 100, 216, .28);
  outline-offset: 3px;
}

input,
select,
textarea {
  font-size: 16px;
}

textarea {
  resize: vertical;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.site-header,
.hero,
.section,
.intro-band,
.roadmap,
.app-grid,
.graph-app,
.timer-app,
.timer-workbench,
.timer-hero,
.tool-panel,
.canvas-panel,
.timer-panel,
.timer-data-panel {
  min-width: 0;
}

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

.main-nav a,
.tour-trigger,
.button,
.small-button,
.timer-actions .button,
.timer-actions .small-button {
  min-height: 44px;
}

.hero {
  overflow: visible;
}

.formula-chip {
  max-width: min(190px, 44vw);
  overflow-wrap: anywhere;
}

.app-card {
  min-height: auto;
}

.graph-app {
  width: 100%;
}

.tool-panel {
  align-self: start;
}

fieldset,
.canvas-panel,
.timer-panel,
.timer-data-panel,
.timer-hero {
  overflow: hidden;
}

.fieldset-toggle {
  width: 100%;
}

.data-table-wrap,
.timer-table-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.data-table {
  min-width: 420px;
}

.timer-table {
  min-width: 440px;
}

.data-table th,
.data-table td,
.timer-table th,
.timer-table td {
  white-space: nowrap;
}

.canvas-shell {
  min-height: clamp(280px, 58svh, 760px);
}

.canvas-shell canvas {
  width: min(100%, 1200px);
  height: auto;
  aspect-ratio: 1200 / 820;
  object-fit: contain;
}

.timer-display {
  font-variant-numeric: tabular-nums;
}

.timer-tools,
.timer-export-actions {
  min-width: 0;
}

.timer-export-actions .button {
  min-width: min(100%, 160px);
}

.graph-tour-card,
.timer-page .tour-card {
  max-height: min(86dvh, 560px);
  overflow: auto;
}

@media (min-width: 1800px) {
  :root {
    --content-max: 1360px;
  }

  .graph-app,
  .timer-workbench {
    max-width: 1560px;
    margin-inline: auto;
  }
}

@media (max-width: 1120px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .main-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .intro-band,
  .roadmap {
    padding-block: 48px;
  }

  .graph-app {
    align-items: stretch;
  }

  .canvas-panel {
    min-height: min(72svh, 720px);
  }

  .timer-workbench {
    max-width: 760px;
  }
}

@media (max-width: 700px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .main-nav a,
  .tour-trigger {
    width: 100%;
    border-radius: 8px;
    justify-content: flex-start;
  }

  .hero,
  .section {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions,
  .export-actions,
  .timer-export-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .export-actions .button,
  .timer-export-actions .button {
    width: 100%;
  }

  .intro-band,
  .roadmap {
    padding-inline: 16px;
  }

  .graph-app {
    padding: 8px;
  }

  .data-table-wrap {
    margin-inline: -2px;
  }

  .canvas-shell {
    min-height: 320px;
  }

  .timer-workbench {
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 100%;
  }

  .main-nav {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-visual {
    min-height: 260px;
  }

  .formula-chip {
    position: static;
    display: inline-flex;
    margin: 6px;
  }

  .hero-visual {
    align-content: center;
  }

  .orbit {
    display: none;
  }

  .app-card {
    padding: 18px;
  }

  .tool-panel,
  .canvas-panel,
  .timer-panel,
  .timer-data-panel,
  .timer-hero {
    border-radius: 8px;
  }

  .canvas-shell {
    min-height: 280px;
  }

  .timer-table {
    min-width: 360px;
  }
}

@media (max-width: 360px) {
  .site-header,
  .hero,
  .section,
  .intro-band,
  .roadmap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .button,
  .small-button {
    padding-inline: 10px;
  }

  .timer-table {
    min-width: 330px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 240px;
  }

  .timer-hero {
    grid-template-columns: minmax(0, 1fr) minmax(150px, .28fr);
  }

  .timer-table-wrap {
    max-height: 46svh;
  }

  .canvas-shell {
    min-height: 74svh;
  }
}

/* Apps home refresh: aligned with senderosdelafisica.zix.com.pa index */
.apps-home {
  --home-ink: #343538;
  --home-text: #4c4f55;
  --home-blue: #5351de;
  --home-red: #ff4146;
  --home-green: #087a5a;
  --home-gold: #f4b826;
  --home-soft: #f7f8fb;
  --home-line: rgba(9, 84, 63, 0.14);
  min-height: 100vh;
  color: var(--home-ink);
  background:
    linear-gradient(180deg, #ffffff 0, #ffffff 72px, #f8f9fb 72px, #f8f9fb 100%);
}

.apps-home #loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: #ffffff;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.apps-home.page-loaded #loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.apps-home #loading-center-absolute {
  position: relative;
  width: 88px;
  height: 88px;
}

.apps-home .object {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 8px;
  background: var(--home-blue);
  animation: appsLoader 1.15s infinite ease-in-out;
}

.apps-home #object_one { left: 0; top: 0; background: var(--home-green); }
.apps-home #object_two { right: 0; top: 0; background: var(--home-red); animation-delay: 0.14s; }
.apps-home #object_three { right: 0; bottom: 0; background: var(--home-gold); animation-delay: 0.28s; }
.apps-home #object_four { left: 0; bottom: 0; background: var(--home-blue); animation-delay: 0.42s; }

@keyframes appsLoader {
  0%, 100% { transform: scale(1); opacity: 0.58; }
  50% { transform: scale(1.55); opacity: 1; }
}

.apps-home .apps-home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px max(clamp(18px, 4vw, 56px), calc((100vw - 1180px) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 226, 234, 0.7);
  box-shadow: 0 14px 36px rgba(23, 34, 44, 0.05);
  backdrop-filter: blur(18px);
}

.apps-home .brand img {
  width: 150px;
  height: auto;
}

.apps-home .brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.apps-home .main-nav a {
  color: #12141a;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
}

.apps-home .main-nav a i {
  color: var(--home-blue);
}

.apps-home .main-nav a:hover {
  color: var(--home-blue);
  background: rgba(83, 81, 222, 0.08);
}

.apps-home .main-nav .nav-cta {
  min-width: 150px;
  justify-content: center;
  color: #ffffff;
  background: var(--home-red);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(255, 65, 70, 0.2);
}

.apps-home .main-nav .nav-cta i,
.apps-home .main-nav .nav-cta:hover {
  color: #ffffff;
}

.apps-home .main-nav .nav-cta:hover {
  background: #ee353a;
  transform: translateY(-1px);
}

.apps-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  width: min(1180px, calc(100% - clamp(36px, 8vw, 120px)));
  min-height: min(720px, calc(100svh - 112px));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) 0 clamp(30px, 4vw, 52px);
}

.apps-home .subheading {
  display: block;
  margin: 0 0 16px;
  color: #22242a;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.apps-home h1 {
  max-width: 760px;
  color: var(--home-ink);
  font-size: clamp(3rem, 6.5vw, 5.4rem);
  font-weight: 800;
  line-height: 1.05;
}

.apps-home h2 {
  color: var(--home-ink);
  font-size: clamp(2.1rem, 4vw, 4rem);
  font-weight: 800;
}

.apps-home .hero-text {
  max-width: 680px;
  color: var(--home-text);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.apps-home .hero-actions .button {
  gap: 10px;
  min-height: 54px;
  min-width: 210px;
  padding: 14px 22px;
  border-radius: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.apps-home .button.primary {
  background: var(--home-red);
  box-shadow: 0 16px 34px rgba(255, 65, 70, 0.24);
}

.apps-home .button.secondary {
  color: #ffffff;
  background: var(--home-blue);
  box-shadow: 0 16px 34px rgba(83, 81, 222, 0.24);
}

.apps-home .button:hover {
  transform: translateY(-2px);
}

.apps-hero-checks {
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: #28313b;
  font-size: 1.05rem;
}

.apps-hero-checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.apps-hero-checks i {
  margin-top: 4px;
  color: var(--home-blue);
  font-size: 1.05rem;
}

.apps-hero-visual {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
}

.apps-device {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  padding: 22px;
  border: 1px solid rgba(9, 84, 63, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(8, 122, 90, 0.12), rgba(244, 184, 38, 0.12));
  box-shadow: 0 28px 64px rgba(23, 34, 44, 0.14);
  animation: appsFloat 6s ease-in-out infinite;
}

.device-topline {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
}

.device-topline span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--home-red);
}

.device-topline span:nth-child(2) { background: var(--home-gold); }
.device-topline span:nth-child(3) { background: var(--home-green); }

.device-logo {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(23, 34, 44, 0.12);
}

.device-logo img {
  width: 62px;
  height: auto;
}

.device-title {
  margin: 22px 0 18px;
  color: var(--home-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  line-height: 1.05;
}

.device-list {
  display: grid;
  gap: 10px;
}

.device-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(217, 226, 234, 0.9);
  border-radius: 8px;
  background: #ffffff;
  color: #26303b;
  font-weight: 800;
}

.device-list i {
  color: var(--home-blue);
}

.apps-signal-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  min-width: 154px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 46px rgba(23, 34, 44, 0.16);
  animation: appsPulseCard 5.5s ease-in-out infinite;
}

.apps-signal-card i {
  color: var(--home-red);
}

.apps-signal-card strong {
  color: var(--home-ink);
  font-size: 1.4rem;
}

.apps-signal-card span {
  color: var(--home-text);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.apps-signal-card.card-one {
  top: 14%;
  left: 0;
}

.apps-signal-card.card-two {
  right: 0;
  bottom: 14%;
  animation-delay: 0.8s;
}

@keyframes appsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes appsPulseCard {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

.apps-home-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 7vw, 92px) max(clamp(18px, 6vw, 82px), calc((100vw - 1180px) / 2));
  color: #ffffff;
  background: linear-gradient(135deg, #087a5a, #189364 54%, #f4b826);
}

.apps-home-band .subheading,
.apps-home-band h2 {
  color: #ffffff;
}

.apps-home-band p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.14rem;
  line-height: 1.75;
}

.apps-section {
  background: #f7f8fb;
}

.apps-section-heading {
  max-width: 820px;
}

.apps-home-grid {
  gap: 22px;
}

.apps-home .app-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 26px;
  border: 1px solid rgba(217, 226, 234, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 34, 44, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.apps-home .app-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--card-color, var(--home-blue));
}

.apps-home .app-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-color, var(--home-blue)) 42%, #ffffff);
  box-shadow: 0 24px 54px rgba(23, 34, 44, 0.13);
}

.apps-home .app-card-calculator { --card-color: var(--home-green); }
.apps-home .app-card-timer { --card-color: var(--home-red); }
.apps-home .app-card-graphs { --card-color: var(--home-gold); }
.apps-home .app-card-motion { --card-color: var(--home-blue); }
.apps-home .app-card-mobile { --card-color: #20a7b8; }
.apps-home .app-card-labs { --card-color: #6d7b8a; }

.apps-home .app-icon {
  width: 58px;
  height: 58px;
  background: var(--card-color, var(--home-blue));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--card-color, var(--home-blue)) 28%, transparent);
}

.apps-home .app-icon i {
  font-size: 1.42rem;
}

.apps-home .status.ready {
  color: #09543f;
  background: rgba(9, 84, 63, 0.12);
}

.apps-home .status.soon {
  color: #7a5400;
  background: rgba(244, 184, 38, 0.18);
}

.apps-home .app-card h3 {
  color: #14171d;
  font-size: 1.45rem;
  line-height: 1.15;
}

.apps-home .app-card p:not(.status) {
  color: #5c6570;
  font-size: 1rem;
}

.apps-home .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--card-color, var(--home-blue));
  font-weight: 900;
}

.apps-home .text-link i {
  transition: transform 0.18s ease;
}

.apps-home .text-link:hover i {
  transform: translateX(4px);
}

.apps-home-band-light {
  color: var(--home-ink);
  background: #ffffff;
  border-top: 1px solid rgba(217, 226, 234, 0.85);
}

.apps-home-band-light .subheading,
.apps-home-band-light h2 {
  color: var(--home-ink);
}

.apps-route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.apps-route-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 16px;
  border: 1px solid rgba(217, 226, 234, 0.95);
  border-radius: 8px;
  background: #f7f8fb;
  color: #26303b;
  font-weight: 850;
}

.apps-route-list i {
  color: var(--home-blue);
}

.apps-home-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(34px, 5vw, 58px) max(clamp(18px, 6vw, 82px), calc((100vw - 1180px) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: #14171d;
}

.apps-home-footer .footer-logo img {
  width: 174px;
  height: auto;
  filter: brightness(0) invert(1);
}

.apps-home-footer p {
  max-width: 560px;
  margin: 18px 0 0;
  line-height: 1.65;
}

.apps-home-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.apps-home-footer a {
  color: #ffffff;
  font-weight: 750;
}

.apps-home-footer nav a:hover {
  color: var(--home-gold);
}

.apps-home .hero-copy,
.apps-home .apps-hero-visual,
.apps-home .apps-home-band > *,
.apps-home .apps-section-heading,
.apps-home .app-card,
.apps-home .apps-route-list span {
  animation: appsFadeUp 0.72s ease both;
}

.apps-home .apps-hero-visual { animation-delay: 0.08s; }
.apps-home .app-card:nth-child(2) { animation-delay: 0.05s; }
.apps-home .app-card:nth-child(3) { animation-delay: 0.1s; }
.apps-home .app-card:nth-child(4) { animation-delay: 0.15s; }
.apps-home .app-card:nth-child(5) { animation-delay: 0.2s; }
.apps-home .app-card:nth-child(6) { animation-delay: 0.25s; }

@keyframes appsFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .apps-home .apps-home-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .apps-home .main-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .apps-home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .apps-hero-visual {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .apps-home .apps-home-header {
    padding: 14px 16px;
  }

  .apps-home .brand img {
    width: 136px;
  }

  .apps-home .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .apps-home .main-nav a,
  .apps-home .main-nav .nav-cta {
    width: 100%;
    min-width: 0;
    border-radius: 8px;
    justify-content: flex-start;
  }

  .apps-home-hero,
  .apps-home .section,
  .apps-home-band,
  .apps-home-footer {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .apps-home-hero {
    padding-top: 32px;
  }

  .apps-home h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .apps-home .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .apps-home .hero-actions .button {
    width: 100%;
  }

  .apps-home-band,
  .apps-home-footer {
    grid-template-columns: 1fr;
  }

  .apps-home-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .apps-home .main-nav {
    grid-template-columns: 1fr;
  }

  .apps-hero-visual {
    min-height: auto;
    padding-top: 8px;
  }

  .apps-device {
    width: 100%;
    animation: none;
  }

  .apps-signal-card {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 10px;
    animation: none;
  }

  .apps-route-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apps-home *,
  .apps-home *:before,
  .apps-home *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* Apps home icon launcher */
.apps-icon-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0 28px;
}

.app-icon-launch {
  --card-color: var(--home-blue);
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 178px;
  padding: 24px 16px 20px;
  border: 1px solid rgba(217, 226, 234, 0.95);
  border-radius: 8px;
  background: #ffffff;
  color: #151820;
  text-align: center;
  box-shadow: 0 12px 32px rgba(23, 34, 44, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-icon-launch:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 8px 8px 0 0;
  background: var(--card-color);
}

.app-icon-launch:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-color) 42%, #ffffff);
  box-shadow: 0 24px 54px rgba(23, 34, 44, 0.13);
}

.app-launch-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--card-color);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--card-color) 28%, transparent);
}

.app-launch-icon i {
  font-size: 1.9rem;
}

.app-icon-launch strong {
  font-size: 1.1rem;
  line-height: 1.15;
}

.app-icon-launch small {
  color: #5c6570;
  font-weight: 750;
  line-height: 1.35;
}

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

.apps-explainer-grid .app-card {
  min-height: 292px;
}

.apps-home .apps-icon-board,
.apps-home .apps-explainer-grid {
  animation: appsFadeUp 0.72s ease both;
}

@media (max-width: 980px) {
  .apps-icon-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .apps-icon-board,
  .apps-explainer-grid {
    grid-template-columns: 1fr;
  }

  .app-icon-launch {
    min-height: 132px;
    grid-template-columns: 72px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .app-launch-icon {
    grid-row: span 2;
    width: 62px;
    height: 62px;
  }

  .app-launch-icon i {
    font-size: 1.55rem;
  }
}
.apps-home main > .apps-section:first-child {
  padding-top: clamp(34px, 4.4vw, 58px);
}

.apps-home main > .apps-section:first-child .section-heading {
  margin-bottom: 26px;
}
/* Responsive repair for apps hero */
.apps-home-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.72fr);
  align-items: center;
}

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

.apps-home-hero .hero-text {
  max-width: 620px;
}

.apps-hero-visual {
  isolation: isolate;
  overflow: visible;
}

.apps-device {
  max-width: 100%;
}

@media (max-width: 1380px) {
  .apps-home h1 {
    font-size: clamp(3rem, 5.55vw, 4.7rem);
  }

  .apps-home-hero {
    width: min(1120px, calc(100% - clamp(36px, 6vw, 90px)));
    gap: clamp(24px, 4vw, 52px);
  }

  .apps-device {
    width: min(100%, 390px);
  }

  .apps-signal-card {
    min-width: 138px;
    padding: 12px 14px;
  }

  .apps-signal-card strong {
    font-size: 1.22rem;
  }
}

@media (max-width: 1180px) {
  .apps-home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: clamp(40px, 5vw, 56px);
    padding-bottom: clamp(42px, 6vw, 68px);
  }

  .apps-home-hero .hero-copy {
    max-width: 760px;
  }

  .apps-home h1 {
    max-width: 760px;
    font-size: clamp(3rem, 8vw, 4.6rem);
  }

  .apps-hero-visual {
    width: min(100%, 620px);
    min-height: 440px;
    margin-inline: auto;
  }

  .apps-device {
    width: min(100%, 430px);
  }

  .apps-signal-card.card-one {
    left: clamp(0px, 6vw, 38px);
  }

  .apps-signal-card.card-two {
    right: clamp(0px, 6vw, 38px);
  }
}

@media (max-width: 760px) {
  .apps-home-hero {
    gap: 24px;
    padding-top: 30px;
  }

  .apps-home h1 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
    line-height: 1.06;
  }

  .apps-home-hero .hero-text {
    font-size: 1.02rem;
  }

  .apps-hero-visual {
    min-height: 360px;
  }

  .apps-device {
    width: min(100%, 380px);
    padding: 18px;
  }

  .device-title {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }

  .apps-signal-card {
    min-width: 128px;
  }
}

@media (max-width: 560px) {
  .apps-home-hero {
    padding-bottom: 40px;
  }

  .apps-hero-visual {
    display: block;
    min-height: 0;
  }

  .apps-device {
    width: 100%;
  }

  .apps-signal-card {
    position: relative;
    inset: auto !important;
    width: 100%;
    margin-top: 10px;
    animation: none;
  }
}
/* Apps loading and scroll-to-top */
.apps-home #loading {
  background:
    radial-gradient(circle at 50% 42%, rgba(8, 122, 90, 0.08), transparent 34%),
    #ffffff;
}

.apps-home #loading-center {
  display: grid;
  justify-items: center;
  gap: 18px;
  transform: translateY(-10px);
}

.apps-loading-logo {
  width: min(210px, 58vw);
  height: auto;
  animation: appsLoadingLogo 1.25s ease-in-out infinite;
}

.apps-home #loading-center-absolute {
  width: 72px;
  height: 72px;
}

.apps-home .object {
  width: 16px;
  height: 16px;
  border-radius: 6px;
}

.apps-loading-text {
  margin: 0;
  color: #343538;
  font-size: 0.95rem;
  font-weight: 850;
}

.apps-loading-text:after {
  content: "";
  display: inline-block;
  width: 1.4em;
  text-align: left;
  animation: appsLoadingDots 1.1s steps(4, end) infinite;
}

.apps-home.page-loaded #loading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes appsLoadingLogo {
  0%, 100% { transform: translateY(0); opacity: 0.92; }
  50% { transform: translateY(-4px); opacity: 1; }
}

@keyframes appsLoadingDots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75%, 100% { content: "..."; }
}

.apps-scroll-top {
  position: fixed;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 60;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--home-red, #ff4146);
  box-shadow: 0 18px 38px rgba(255, 65, 70, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, background 0.18s ease;
}


.apps-home.page-loaded .apps-scroll-top {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.apps-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.apps-scroll-top:hover,
.apps-scroll-top:focus-visible {
  background: var(--home-blue, #5351de);
  transform: translateY(-2px) scale(1.02);
}

.apps-scroll-top i {
  font-size: 1.05rem;
}

@media (max-width: 620px) {
  .apps-scroll-top {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: 14px;
  }
}
/* Final loaded-state overrides for apps home */
body.apps-home.page-loaded #loading {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.apps-home.page-loaded .apps-scroll-top {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}
/* Apps support flow after the app launcher */
.apps-home-hero-support {
  width: min(1120px, calc(100% - clamp(36px, 6vw, 90px)));
  min-height: auto;
  padding-top: clamp(54px, 7vw, 92px);
  padding-bottom: clamp(46px, 6vw, 76px);
  border-top: 1px solid rgba(217, 226, 234, 0.82);
}

.apps-home-hero-support h1 {
  max-width: 720px;
  font-size: clamp(2.6rem, 5vw, 4.45rem);
}

.apps-home-hero-support .hero-text {
  max-width: 680px;
  margin-top: 20px;
}

.apps-flow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.apps-flow-steps span {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 3px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(217, 226, 234, 0.92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(23, 34, 44, 0.06);
}

.apps-flow-steps i {
  grid-row: 1 / span 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--home-green);
  box-shadow: 0 12px 24px rgba(8, 122, 90, 0.18);
}

.apps-flow-steps span:nth-child(2) i { background: var(--home-red); box-shadow: 0 12px 24px rgba(255, 65, 70, 0.18); }
.apps-flow-steps span:nth-child(3) i { background: var(--home-gold); box-shadow: 0 12px 24px rgba(244, 184, 38, 0.2); }
.apps-flow-steps span:nth-child(4) i { background: var(--home-blue); box-shadow: 0 12px 24px rgba(83, 81, 222, 0.18); }

.apps-flow-steps strong {
  color: var(--home-ink);
  font-size: 1.04rem;
  line-height: 1.2;
}

.apps-flow-steps small {
  color: var(--home-text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.apps-home-hero-support .apps-hero-checks {
  margin-top: 24px;
  gap: 12px;
}

.apps-home-hero-support .apps-hero-visual {
  min-height: 430px;
}

.apps-home-hero-support .apps-device {
  width: min(100%, 390px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
    linear-gradient(135deg, rgba(8, 122, 90, 0.12), rgba(83, 81, 222, 0.1));
}

.apps-home-hero-support .device-list span:first-child i { color: var(--home-green); }
.apps-home-hero-support .device-list span:nth-child(2) i { color: var(--home-red); }
.apps-home-hero-support .device-list span:nth-child(3) i { color: var(--home-gold); }
.apps-home-hero-support .device-list span:nth-child(4) i { color: var(--home-blue); }

@media (max-width: 1180px) {
  .apps-home-hero-support {
    width: min(100% - 36px, 760px);
  }

  .apps-home-hero-support .apps-hero-visual {
    width: min(100%, 560px);
    min-height: 390px;
  }
}

@media (max-width: 760px) {
  .apps-home-hero-support {
    width: 100%;
    padding-top: 38px;
  }

  .apps-flow-steps {
    grid-template-columns: 1fr;
  }

  .apps-flow-steps span {
    min-height: 86px;
  }
}

@media (max-width: 560px) {
  .apps-home-hero-support .apps-hero-visual {
    display: grid;
    gap: 10px;
  }

  .apps-home-hero-support .apps-signal-card {
    position: relative;
    inset: auto !important;
    width: 100%;
    margin-top: 0;
  }
}
/* Timer visual cleanup - 2026-08-04 */
body.timer-page {
  background: linear-gradient(180deg, #f4f8fb 0%, #edf3f8 54%, #eaf2f8 100%);
}

body.timer-page .site-header {
  padding-block: clamp(10px, 1.4vw, 14px);
}

body.timer-page .timer-app {
  width: min(100%, 1180px);
  margin-inline: auto;
  flex: 1 0 auto;
  grid-template-rows: auto auto;
  align-content: start;
  gap: clamp(10px, 1.4vw, 16px);
  padding: clamp(10px, 1.4vw, 16px);
}

body.timer-page .timer-hero {
  width: 100%;
  min-height: 0;
  height: auto;
  grid-template-columns: minmax(0, 1fr) minmax(176px, 236px);
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(16px, 2vw, 22px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(251, 253, 255, .98));
  box-shadow: 0 14px 32px rgba(23, 34, 44, .075);
}

body.timer-page .timer-hero .eyebrow,
body.timer-page .timer-data-header .eyebrow {
  margin-bottom: 7px;
  font-size: clamp(.66rem, 1.1vw, .76rem);
}

body.timer-page .timer-hero h1 {
  max-width: 720px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
}

body.timer-page .timer-hero .hero-text {
  max-width: 62ch;
  margin-top: 9px;
  font-size: clamp(.9rem, 1.15vw, 1rem);
  line-height: 1.45;
}

body.timer-page .timer-summary {
  justify-items: end;
  align-self: center;
  min-height: 76px;
  padding: 14px 16px;
}

body.timer-page .timer-summary strong {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

body.timer-page .timer-workbench {
  width: 100%;
  grid-template-columns: minmax(300px, .88fr) minmax(430px, 1fr);
  gap: clamp(12px, 1.8vw, 18px);
}

body.timer-page .timer-panel,
body.timer-page .timer-data-panel {
  box-shadow: 0 14px 34px rgba(23, 34, 44, .08);
}

body.timer-page .timer-panel {
  align-content: start;
  gap: 12px;
  padding: clamp(14px, 2vw, 20px);
}

body.timer-page .timer-display {
  min-height: clamp(88px, 10vw, 116px);
  padding: 12px 10px;
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  line-height: 1;
}

body.timer-page .timer-status {
  margin-top: 0;
  font-size: .92rem;
}

body.timer-page .timer-actions {
  grid-template-columns: minmax(120px, 1fr) minmax(136px, 1fr) minmax(96px, auto);
  gap: 10px;
}

body.timer-page .timer-actions .button,
body.timer-page .timer-actions .small-button,
body.timer-page .timer-export-actions .button {
  min-height: 44px;
  padding: 10px 14px;
  font-size: clamp(.86rem, 1.05vw, .95rem);
  line-height: 1.15;
}

body.timer-page .timer-data-panel {
  padding: clamp(14px, 1.8vw, 18px);
}

body.timer-page .timer-data-header {
  align-items: center;
  margin-bottom: 10px;
}

body.timer-page .timer-data-header h2 {
  font-size: clamp(1.25rem, 2.15vw, 1.8rem);
  line-height: 1.08;
}

body.timer-page .timer-table-wrap {
  min-height: clamp(168px, 24svh, 230px);
  max-height: min(30svh, 300px);
  background: #ffffff;
}

body.timer-page .timer-table {
  min-width: 390px;
}

body.timer-page .timer-table th,
body.timer-page .timer-table td {
  padding: 9px 12px;
  font-size: clamp(.82rem, 1vw, .93rem);
}

body.timer-page .row-delete {
  width: 32px;
  height: 32px;
}

body.timer-page .timer-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

body.timer-page .site-footer {
  padding-block: 12px;
  font-size: clamp(.82rem, 1vw, .94rem);
}

@media (min-width: 1100px) and (max-height: 760px) {
  body.timer-page .timer-app {
    gap: 10px;
    padding-block: 10px;
  }

  body.timer-page .timer-hero {
    padding-block: 14px;
  }

  body.timer-page .timer-table-wrap {
    min-height: 176px;
    max-height: 260px;
  }
}

@media (max-width: 980px) {
  body.timer-page .timer-app {
    width: min(100%, 760px);
  }

  body.timer-page .timer-hero,
  body.timer-page .timer-workbench {
    grid-template-columns: 1fr;
  }

  body.timer-page .timer-summary {
    justify-items: start;
    width: min(100%, 320px);
  }
}

@media (max-width: 700px) {
  body.timer-page .site-header {
    gap: 10px;
    padding: 10px 12px;
  }

  body.timer-page .brand img {
    width: 34px;
    height: 34px;
  }

  body.timer-page .brand span {
    font-size: .92rem;
    line-height: 1.15;
  }

  body.timer-page .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  body.timer-page .main-nav a,
  body.timer-page .tour-trigger {
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    font-size: .86rem;
  }

  body.timer-page .timer-app {
    padding: 8px;
  }

  body.timer-page .timer-hero,
  body.timer-page .timer-panel,
  body.timer-page .timer-data-panel {
    padding: 12px;
  }

  body.timer-page .timer-hero h1 {
    font-size: clamp(1.28rem, 6vw, 1.8rem);
  }

  body.timer-page .timer-hero .hero-text {
    max-width: none;
    font-size: .88rem;
  }

  body.timer-page .timer-summary {
    width: 100%;
    min-height: 66px;
  }

  body.timer-page .timer-display {
    min-height: 78px;
    font-size: clamp(1.65rem, 11vw, 2.6rem);
  }

  body.timer-page .timer-actions,
  body.timer-page .timer-export-actions {
    grid-template-columns: 1fr;
  }

  body.timer-page .timer-data-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  body.timer-page .timer-data-header .small-button {
    width: 100%;
  }

  body.timer-page .timer-table-wrap {
    min-height: 150px;
    max-height: min(32svh, 260px);
  }

  body.timer-page .timer-table {
    min-width: 330px;
  }

  body.timer-page .timer-table th,
  body.timer-page .timer-table td {
    padding: 8px 7px;
    font-size: .82rem;
  }
}

@media (max-width: 380px) {
  body.timer-page .brand span {
    white-space: normal;
  }

  body.timer-page .timer-display {
    font-size: clamp(1.45rem, 10vw, 2.05rem);
  }

  body.timer-page .timer-summary strong {
    font-size: 1.2rem;
  }

  body.timer-page .timer-table th:nth-child(3),
  body.timer-page .timer-table td:nth-child(3) {
    display: none;
  }
}
/* Timer narrow viewport correction - 2026-08-04 */
@media (max-width: 700px) {
  body.timer-page {
    overflow-x: clip;
  }

  body.timer-page .site-header {
    align-items: stretch;
    overflow-x: clip;
  }

  body.timer-page .brand {
    width: 100%;
  }

  body.timer-page .main-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
    max-width: 100%;
    flex: none;
    justify-content: stretch;
  }

  body.timer-page .main-nav a,
  body.timer-page .tour-trigger {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  body.timer-page .timer-app,
  body.timer-page .timer-hero,
  body.timer-page .timer-workbench,
  body.timer-page .timer-panel,
  body.timer-page .timer-data-panel,
  body.timer-page .site-footer {
    width: 100%;
    max-width: 100%;
  }

  body.timer-page .timer-hero {
    overflow: visible;
  }

  body.timer-page .timer-hero h1 {
    max-width: 100%;
    font-size: clamp(1.12rem, 5.1vw, 1.55rem);
    line-height: 1.12;
  }

  body.timer-page .timer-hero .hero-text {
    font-size: .84rem;
    line-height: 1.36;
  }
}

@media (max-width: 430px) {
  body.timer-page .timer-hero h1 {
    font-size: clamp(1.05rem, 4.9vw, 1.32rem);
  }

  body.timer-page .timer-display {
    font-size: clamp(1.4rem, 9.5vw, 2.15rem);
  }
}
/* Timer viewport width lock - 2026-08-04 */
@media (max-width: 700px) {
  html,
  body.timer-page {
    max-width: 100vw;
    overflow-x: hidden;
  }

  body.timer-page .site-header,
  body.timer-page .timer-app,
  body.timer-page .site-footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
  }

  body.timer-page .timer-hero,
  body.timer-page .timer-workbench,
  body.timer-page .timer-panel,
  body.timer-page .timer-data-panel {
    max-width: calc(100vw - 16px);
  }

  body.timer-page .main-nav {
    width: 100%;
    max-width: calc(100vw - 24px);
  }
}
/* Timer compact mobile topbar - 2026-08-04 */
@media (max-width: 700px) {
  body.timer-page .main-nav {
    display: flex !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    justify-content: flex-start !important;
    gap: 8px;
  }

  body.timer-page .main-nav a,
  body.timer-page .tour-trigger {
    flex: 0 1 auto;
    width: auto !important;
    min-width: 0;
    max-width: calc((100vw - 34px) / 2);
    justify-content: flex-start;
    gap: 7px;
    padding-inline: 9px;
  }

  body.timer-page .timer-hero h1 {
    font-size: clamp(1.02rem, 4.4vw, 1.22rem);
    text-wrap: balance;
  }

  body.timer-page .timer-hero .hero-text,
  body.timer-page .timer-summary {
    max-width: calc(100vw - 40px);
  }
}
/* Timer mobile card width clamp - 2026-08-04 */
@media (max-width: 700px) {
  body.timer-page .timer-workbench,
  body.timer-page .timer-hero,
  body.timer-page .timer-panel,
  body.timer-page .timer-data-panel {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
  }

  body.timer-page .timer-hero > div:first-child,
  body.timer-page .timer-hero .hero-text,
  body.timer-page .timer-summary,
  body.timer-page .timer-display,
  body.timer-page .timer-actions,
  body.timer-page .timer-export-actions,
  body.timer-page .timer-table-wrap {
    width: 100%;
    max-width: 100%;
  }

  body.timer-page .timer-hero .hero-text {
    overflow-wrap: break-word;
  }
}
/* Timer mobile text measure - 2026-08-04 */
@media (max-width: 700px) {
  body.timer-page .timer-hero > div:first-child,
  body.timer-page .timer-hero h1,
  body.timer-page .timer-hero .hero-text,
  body.timer-page .timer-summary {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
  }

  body.timer-page .timer-hero h1,
  body.timer-page .timer-hero .hero-text {
    white-space: normal !important;
    overflow: visible;
  }
}
/* Timer mobile hero copy trim - 2026-08-04 */
@media (max-width: 700px) {
  body.timer-page .timer-hero .hero-text {
    display: none;
  }
}
