:root {
  --tn-ov-ink: #1a1208;
  --tn-ov-muted: #5a4a30;
  --tn-ov-line: #b8a888;
  --tn-ov-soft-line: #ddd4be;
  --tn-ov-paper: #faf6ee;
  --tn-ov-wash: #f5efdf;
  --tn-ov-button: #ede6d4;
  --tn-ov-button-hover: #dfd4bb;
  --tn-ov-accent: #c44a00;
  --tn-ov-accent-soft: #f1d9c8;
  --tn-ov-good: #6f7f35;
  --tn-ov-rose: #9d3f4f;
  --tn-ov-purple: #675071;
}

.tn-ov-page {
  max-width: 1180px;
  margin: 0 auto;
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
}

.tn-ov-page *,
.tn-ov-page *::before,
.tn-ov-page *::after {
  box-sizing: border-box;
}

.tn-ov-tool {
  margin: 0 auto;
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
}

.tn-ov-tool ul,
.tn-ov-tool ol,
.tn-ov-tool li,
.tn-article-panel ul,
.tn-article-panel ol,
.tn-article-panel li,
.tn-design-note ul,
.tn-design-note li {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.tn-ov-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 12px;
}

.tn-ov-input,
.tn-ov-result,
.tn-ov-forecast {
  background: var(--tn-ov-paper);
  border: 1px solid var(--tn-ov-line);
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
  box-shadow: none;
}

.tn-ov-input,
.tn-ov-result {
  min-height: 100%;
  padding: 14px;
}

.tn-ov-pane-label {
  margin: 0 0 10px;
  color: var(--tn-ov-muted);
  -webkit-text-fill-color: currentColor;
  font: 700 12px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tn-ov-fieldset {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tn-ov-field {
  display: grid;
  gap: 5px;
  position: relative;
}

.tn-ov-field span,
.tn-ov-field small {
  color: var(--tn-ov-muted);
  -webkit-text-fill-color: currentColor;
}

.tn-ov-field span {
  font: 700 13px/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tn-ov-field small,
.tn-ov-status,
.tn-ov-caution,
.tn-ov-primary-result em {
  font-size: 12px;
  line-height: 1.5;
}

.tn-ov-field input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--tn-ov-line);
  border-radius: 0;
  background: var(--tn-ov-wash);
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
  box-shadow: none;
  font: 600 14px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 8px 10px;
}

.tn-ov-field input:focus {
  outline: 1px solid var(--tn-ov-accent);
  outline-offset: 1px;
}

.tn-ov-input-shell {
  display: block;
  position: relative;
}

.tn-ov-input-shell > input {
  padding-right: 58px;
}

.tn-ov-input-shell > b[aria-hidden="true"] {
  position: absolute;
  right: 0;
  top: 0;
  height: 38px;
  min-width: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--tn-ov-line);
  border-right: 1px solid var(--tn-ov-line);
  border-bottom: 1px solid var(--tn-ov-line);
  background: var(--tn-ov-button);
  color: var(--tn-ov-muted);
  -webkit-text-fill-color: currentColor;
  box-shadow: none;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  pointer-events: none;
}

.tn-ov-command-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

html body.wp-theme-intro [data-tn-page="ovulation-calculator"][data-tn-fixed-partials="character-counter"][data-tn-fixed-partials="character-counter"] .tn-ov-command-row {
  grid-template-columns: minmax(0, 1fr) !important;
}

.tn-ov-command-row button,
.tn-ov-month-nav button {
  min-height: 36px;
  border: 1px solid var(--tn-ov-line);
  border-radius: 0;
  background: var(--tn-ov-button);
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
  box-shadow: none;
  cursor: pointer;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tn-ov-command-row button {
  width: 100%;
  flex: 1 1 0;
  display: grid;
  place-items: center;
  padding: 0 12px;
}


.tn-ov-command-row button:hover,
.tn-ov-month-nav button:hover {
  background: var(--tn-ov-button-hover);
}

.tn-ov-command-row button:focus-visible,
.tn-ov-month-nav button:focus-visible {
  outline: 2px solid var(--tn-ov-accent);
  outline-offset: 2px;
}


.tn-ov-status {
  min-height: 18px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid var(--tn-ov-soft-line);
  background: var(--tn-ov-wash);
  color: var(--tn-ov-muted);
  -webkit-text-fill-color: currentColor;
}

.tn-ov-status[data-state="error"] {
  color: #8a2f19;
  -webkit-text-fill-color: currentColor;
}

.tn-ov-primary-result {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--tn-ov-line);
  background: linear-gradient(180deg, var(--tn-ov-wash), var(--tn-ov-paper));
}

.tn-ov-primary-result span,
.tn-ov-primary-result em {
  color: var(--tn-ov-muted);
  -webkit-text-fill-color: currentColor;
  font-style: normal;
}

.tn-ov-primary-result span {
  font: 700 12px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tn-ov-primary-result strong {
  color: var(--tn-ov-accent);
  -webkit-text-fill-color: currentColor;
  font: 800 28px/1.15 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.02em;
}

.tn-ov-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px 0 0;
}

.tn-ov-result-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--tn-ov-soft-line);
  background: var(--tn-ov-wash);
}

.tn-ov-result-grid dt {
  color: var(--tn-ov-muted);
  -webkit-text-fill-color: currentColor;
  font: 700 11px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tn-ov-result-grid dd {
  margin: 0;
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
  font: 700 14px/1.35 Georgia, 'Times New Roman', serif;
}

.tn-ov-caution {
  margin: 10px 0 0;
  color: var(--tn-ov-muted);
  -webkit-text-fill-color: currentColor;
  border-top: 1px solid var(--tn-ov-soft-line);
  padding-top: 9px;
}

.tn-ov-forecast {
  margin-top: 12px;
  padding: 12px;
}

.tn-ov-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tn-ov-strip-head .tn-ov-pane-label {
  margin: 0;
}

.tn-ov-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tn-ov-month-nav button {
  width: 36px;
  padding: 0;
}

.tn-ov-month-nav strong {
  min-width: 94px;
  text-align: center;
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tn-ov-prediction-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.tn-ov-cycle-chip {
  flex: 0 0 178px;
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--tn-ov-soft-line);
  background: var(--tn-ov-wash);
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
  box-shadow: none;
}

.tn-ov-cycle-chip strong,
.tn-ov-cycle-chip span {
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.tn-ov-cycle-chip strong {
  font: 700 13px/1.25 Georgia, 'Times New Roman', serif;
}

.tn-ov-cycle-chip span {
  font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tn-ov-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--tn-ov-line);
  border-left: 1px solid var(--tn-ov-line);
}

.tn-ov-calendar-day {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--tn-ov-line);
  border-bottom: 1px solid var(--tn-ov-line);
  background: var(--tn-ov-paper);
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  position: relative;
}

.tn-ov-calendar-day[aria-disabled="true"] {
  background: var(--tn-ov-wash);
  color: var(--tn-ov-muted);
  -webkit-text-fill-color: currentColor;
}

.tn-ov-calendar-day--label {
  min-height: 28px;
  background: var(--tn-ov-button);
  color: var(--tn-ov-muted);
  -webkit-text-fill-color: currentColor;
}

.tn-ov-calendar-day--fertile {
  background: #f7e7cf;
}

.tn-ov-calendar-day--period {
  background: #efd2d4;
}

.tn-ov-calendar-day--ovulation {
  background: #e6d8ec;
  color: var(--tn-ov-purple);
  -webkit-text-fill-color: currentColor;
  font-weight: 800;
}

.tn-ov-calendar-day--today::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--tn-ov-accent);
  pointer-events: none;
}

.tn-ov-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: var(--tn-ov-muted);
  -webkit-text-fill-color: currentColor;
  font: 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tn-ov-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tn-ov-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border: 1px solid var(--tn-ov-line);
  background: var(--tn-ov-wash);
}

.tn-ov-dot--period { background: #efd2d4; }
.tn-ov-dot--ovulation { background: #e6d8ec; }
.tn-ov-dot--fertile { background: #f7e7cf; }
.tn-ov-dot--today { background: var(--tn-ov-paper); border-color: var(--tn-ov-accent); }

.tn-example-ledger {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.tn-example-ledger div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--tn-ov-soft-line);
  padding-top: 6px;
}

.tn-example-ledger span,
.tn-example-ledger b {
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.tn-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.tn-source-links span,
.tn-source-link {
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tn-source-link {
  display: inline-flex;
  border: 1px solid var(--tn-ov-line);
  padding: 6px 8px;
  background: var(--tn-ov-button);
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
  text-decoration: none;
  box-shadow: none;
}

.tn-source-link:hover {
  background: var(--tn-ov-button-hover);
}

.tn-info-card p,
.tn-info-card li,
.tn-faq-item p {
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
}

.tn-info-card ul {
  display: grid;
  gap: 6px;
}

.tn-info-card li {
  position: relative;
  padding-left: 12px;
}

.tn-info-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  border-top: 1px solid currentColor;
}

body[data-scheme="dark"] .tn-ov-page,
body[data-scheme="inverse"] .tn-ov-page,
body[data-scheme="auto"][data-l="dark"] .tn-ov-page,
body[data-scheme="auto"][data-d="dark"] .tn-ov-page,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ov-page {
  --tn-ov-ink: #f6ecd8;
  --tn-ov-muted: #d6c4a0;
  --tn-ov-line: #7d6a48;
  --tn-ov-soft-line: #5f5035;
  --tn-ov-paper: #21190f;
  --tn-ov-wash: #2c2114;
  --tn-ov-button: #3a2b18;
  --tn-ov-button-hover: #4b3920;
  --tn-ov-accent: #ff9b54;
  --tn-ov-accent-soft: #4b2d1c;
  --tn-ov-good: #c4d47a;
  --tn-ov-rose: #e8a2a9;
  --tn-ov-purple: #d8badf;
  color: var(--tn-ov-ink);
  -webkit-text-fill-color: currentColor;
}

body[data-scheme="dark"] .tn-ov-command-row button,
body[data-scheme="inverse"] .tn-ov-command-row button,
body[data-scheme="auto"][data-l="dark"] .tn-ov-command-row button,
body[data-scheme="auto"][data-d="dark"] .tn-ov-command-row button,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ov-command-row button {
  background: #2f2115;
  color: #f7ead1;
  -webkit-text-fill-color: #f7ead1;
  border-color: #826744;
}

body[data-scheme="dark"] .tn-ov-command-row button:hover,
body[data-scheme="inverse"] .tn-ov-command-row button:hover,
body[data-scheme="auto"][data-l="dark"] .tn-ov-command-row button:hover,
body[data-scheme="auto"][data-d="dark"] .tn-ov-command-row button:hover,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ov-command-row button:hover,
body[data-scheme="dark"] .tn-ov-command-row button:focus-visible,
body[data-scheme="inverse"] .tn-ov-command-row button:focus-visible,
body[data-scheme="auto"][data-l="dark"] .tn-ov-command-row button:focus-visible,
body[data-scheme="auto"][data-d="dark"] .tn-ov-command-row button:focus-visible,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ov-command-row button:focus-visible {
  background: #3a2a1b;
}

body[data-scheme="dark"] .tn-ov-calendar-day--fertile,
body[data-scheme="inverse"] .tn-ov-calendar-day--fertile,
body[data-scheme="auto"][data-l="dark"] .tn-ov-calendar-day--fertile,
body[data-scheme="auto"][data-d="dark"] .tn-ov-calendar-day--fertile,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ov-calendar-day--fertile {
  background: #46311c;
}

body[data-scheme="dark"] .tn-ov-calendar-day--period,
body[data-scheme="inverse"] .tn-ov-calendar-day--period,
body[data-scheme="auto"][data-l="dark"] .tn-ov-calendar-day--period,
body[data-scheme="auto"][data-d="dark"] .tn-ov-calendar-day--period,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ov-calendar-day--period {
  background: #4b2528;
}

body[data-scheme="dark"] .tn-ov-calendar-day--ovulation,
body[data-scheme="inverse"] .tn-ov-calendar-day--ovulation,
body[data-scheme="auto"][data-l="dark"] .tn-ov-calendar-day--ovulation,
body[data-scheme="auto"][data-d="dark"] .tn-ov-calendar-day--ovulation,
html[data-scheme="dark"] body:not([data-scheme="light"]) .tn-ov-calendar-day--ovulation {
  background: #3c2b43;
  color: var(--tn-ov-purple);
  -webkit-text-fill-color: currentColor;
}

@media (min-width: 721px) {
  .tn-ov-fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .tn-ov-field--date,
  .tn-ov-input-actions {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .tn-ov-page {
    width: calc(100% - 10px);
  }

  .tn-ov-workspace {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tn-ov-input,
  .tn-ov-result,
  .tn-ov-forecast {
    padding: 10px;
  }

  .tn-ov-command-row {
    margin-top: 10px;
  }

  .tn-ov-primary-result strong {
    font-size: 23px;
  }

  .tn-ov-strip-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tn-ov-month-nav {
    width: 100%;
    justify-content: space-between;
  }

  .tn-ov-calendar-day {
    min-height: 31px;
    font-size: 11px;
  }

  .tn-ov-cycle-chip {
    flex-basis: 154px;
  }

  .tn-example-ledger div {
    display: grid;
  }
}
