.intro-hero {
  text-align: center;
  padding: 64px 0 26px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #263342;
  border-radius: 999px;
  padding: 7px 12px;
  color: #8debd0;
  background: rgba(56, 214, 162, 0.05);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 18px 0 12px;
}
.grad {
  background: linear-gradient(90deg, #fff 20%, #8eead5 50%, #55bfff 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  max-width: 720px;
  margin: auto;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}
.badges {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.badge {
  border: 1px solid #202b38;
  background: rgba(13, 18, 26, 0.7);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  color: #a7b2c1;
  font-weight: 650;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0 12px;
}
.stat {
  background: rgba(13, 18, 26, 0.9);
  border: 1px solid #202b38;
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}
.stat small {
  display: block;
  color: #748093;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel {
  background: rgba(13, 18, 26, 0.94);
  border: 1px solid #26313e;
  border-radius: 18px;
  box-shadow: 0 22px 70px var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.monitor {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border-bottom: 1px solid #222d39;
}
.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 13px var(--accent);
  animation: blink 1.6s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.monitor b {
  font-size: 12px;
  white-space: nowrap;
}
.monitor small {
  color: #687587;
  white-space: nowrap;
  margin-left: auto;
}

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 20px 6px;
}
.cat-tab {
  border: 1px solid #2d3947;
  border-radius: 999px;
  background: #151e29;
  color: #c6ceda;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.cat-tab:hover {
  border-color: #4b5c70;
}
.cat-tab.active {
  background: linear-gradient(145deg, #198475, #135b58);
  border-color: #4de1c0;
  color: #fff;
  box-shadow: 0 0 14px rgba(56, 214, 162, 0.22);
}

/* ---------- Settings fields (reused across both modes) ---------- */
.date-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  padding: 16px 20px 6px;
}
.conv-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.conv-field label {
  font-size: 10.5px;
  color: #7f8b9b;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}
.conv-field input[type="number"] {
  width: 100%;
  background: #0d121a;
  border: 1px solid #2d3947;
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  font-family: inherit;
  min-width: 0;
}
.conv-field input:focus {
  outline: none;
  border-color: var(--accent);
}
.conv-field input:disabled {
  opacity: 0.5;
}

.calc-mode[hidden] {
  display: none;
}

/* ---------- Timer display ---------- */
.timer-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 10px;
  text-align: center;
}
.phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(56, 214, 162, 0.12);
  color: #7be8c8;
  border: 1px solid rgba(56, 214, 162, 0.3);
}
.phase-badge.break {
  background: rgba(35, 168, 255, 0.12);
  color: #8ecbff;
  border-color: rgba(35, 168, 255, 0.3);
}
.timer-digits {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: clamp(56px, 12vw, 104px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 40px rgba(56, 214, 162, 0.18);
}
.timer-digits.running {
  color: #8eead5;
}
.session-counter {
  color: #7f8b9b;
  font-size: 13px;
  font-weight: 650;
}
.timer-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px 20px 6px;
}
button.btn {
  border: 1px solid #2d3947;
  border-radius: 10px;
  background: #151e29;
  color: #e7edf5;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}
button.btn:hover {
  background: #1b2735;
  border-color: #4b5c70;
}
button.btn.primary {
  background: #174f47;
  border-color: #286b60;
}
button.btn.primary:hover {
  background: #1b6357;
}
button.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.btn:disabled:hover {
  background: #151e29;
  border-color: #2d3947;
}

.timer-settings-shared {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 18px 20px 22px;
  border-top: 1px solid #1b2530;
  margin-top: 14px;
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 7px;
}
.checkbox-field input {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}
.checkbox-field label {
  font-size: 12.5px;
  color: #c6ceda;
  font-weight: 650;
}
.notify-hint {
  color: #687587;
  font-size: 11px;
}

.bottom {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
  margin: 14px 0 28px;
}
.card {
  background: rgba(13, 18, 26, 0.94);
  border: 1px solid #26313e;
  border-radius: 15px;
  padding: 18px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  color: #7f8b9b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.card p {
  color: #818d9d;
  font-size: 13px;
  line-height: 1.55;
  margin: 11px 0 14px;
}

table.uses {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.uses th,
table.uses td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #1b2530;
}
table.uses th {
  color: #7f8b9b;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
table.uses td {
  color: #c6ceda;
}
table.uses tr:last-child td {
  border-bottom: none;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 40px;
}
.info-section h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.info-section .card p {
  color: #818d9d;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.faq details {
  border-bottom: 1px solid #1b2530;
  padding: 12px 0;
}
.faq details:last-child {
  border-bottom: none;
}
.faq summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 13.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "–";
}
.faq p {
  color: #8a97a8;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0 0;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 20px, 1240px);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .intro-hero {
    padding: 58px 0 20px;
  }
  .subtitle {
    font-size: 14px;
  }
  .stat strong {
    font-size: 18px;
  }
  .card {
    padding: 15px;
  }
  button.btn {
    padding: 11px 16px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.timer-status {
  text-align: center;
  color: #ffcd8c;
  padding: 0 16px;
}
.monitor small,
.conv-field label,
.session-counter,
.notify-hint {
  color: #a2afbf;
}
.stat strong {
  font-size: clamp(14px, 2vw, 20px);
}

/* Contrast and reduced-motion safeguards remain local to the tool. */
main .card p,
main .info-section p,
main .info-section li,
main .info-section ul,
main .info-section ol {
  color: #a4b0c0;
}
main :focus-visible {
  outline: 3px solid #55c8ff;
  outline-offset: 3px;
}
main .card {
  min-width: 0;
}
main table {
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  main *,
  main *::before,
  main *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
