.runtimecalc {
  --rc-blue: #1c6dd0;
  --rc-blue-strong: #1559a8;
  --rc-blue-soft: #e6eff9;
  --rc-blue-deep: #0e3f75;
  --rc-gold: #e2b26f;
  --rc-gold-dark: #c79a5b;
  --rc-gold-soft: #fbf5eb;
  --rc-ink: #111111;
  --rc-ink-muted: #3d454d;
  --rc-lines: #e2e8ee;
  --rc-lines-strong: #cfd8e1;
  --rc-bg: #eaf1f5;
  --rc-paper: #ffffff;
  --rc-error: #b3261e;

  width: 100%;
  max-width: 100%;
  margin: 0 0 32px;
  padding: 0;
  border: 1px solid var(--rc-lines-strong);
  border-radius: 0;
  background: var(--rc-bg);
  color: var(--rc-ink);
  box-sizing: border-box;
  font-family: Verdana, BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.runtimecalc *,
.runtimecalc *::before,
.runtimecalc *::after {
  box-sizing: border-box;
}

.runtimecalc__topbar {
  padding: 16px 28px;
  background: var(--rc-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.runtimecalc__topbar-title {
  margin: 0;
  font-family: "Bree Serif", Roboto, Verdana, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.runtimecalc__topbar-tag {
  margin: 0;
  font-size: 12px;
  color: #ffffff;
  opacity: 0.85;
  white-space: nowrap;
}

.runtimecalc__hero {
  padding: 26px 28px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  border-bottom: 1px solid var(--rc-lines);
}

.runtimecalc__eyebrow {
  margin: 0 0 10px;
  color: var(--rc-blue-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.runtimecalc__title {
  margin: 0 0 8px;
  font-family: "Bree Serif", Roboto, Verdana, sans-serif;
  font-size: 28px;
  line-height: 1.15;
  color: var(--rc-ink);
  font-weight: 500;
}

.runtimecalc__subtitle {
  margin: 0;
  color: var(--rc-ink-muted);
  max-width: 80ch;
  font-size: 14px;
}

.runtimecalc__body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
}

.runtimecalc__panel {
  padding: 28px;
}

.runtimecalc__panel--controls {
  background: var(--rc-paper);
  border-right: 1px solid var(--rc-lines);
}

.runtimecalc__panel--results {
  background: linear-gradient(180deg, #0e3f75 0%, #12345c 100%);
  color: #ffffff;
}

.runtimecalc__section + .runtimecalc__section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rc-lines);
}

.runtimecalc__panel--results .runtimecalc__section + .runtimecalc__section {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.runtimecalc__label {
  display: block;
  margin-bottom: 10px;
  font-family: "Bree Serif", Roboto, Verdana, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--rc-blue-deep);
}

.runtimecalc__panel--results .runtimecalc__label {
  color: #bcd1e8;
}

.runtimecalc__buttons,
.runtimecalc__mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--rc-lines-strong);
  border-right: 0;
  border-bottom: 0;
  background: #ffffff;
}

.runtimecalc__panel--results .runtimecalc__buttons,
.runtimecalc__panel--results .runtimecalc__mode-switch {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
}

.runtimecalc__chip,
.runtimecalc__mode,
.runtimecalc__action {
  border: 0;
  border-right: 1px solid var(--rc-lines-strong);
  border-bottom: 1px solid var(--rc-lines-strong);
  border-radius: 0;
  background: #ffffff;
  color: var(--rc-ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  font-family: inherit;
}

.runtimecalc__chip,
.runtimecalc__mode {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13px;
  min-height: 44px;
}

.runtimecalc__panel--results .runtimecalc__chip,
.runtimecalc__panel--results .runtimecalc__mode {
  background: transparent;
  color: #ffffff;
  border-right-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.runtimecalc__chip:hover,
.runtimecalc__mode:hover {
  background: var(--rc-blue-soft);
  color: var(--rc-blue-deep);
}

.runtimecalc__panel--results .runtimecalc__chip:hover,
.runtimecalc__panel--results .runtimecalc__mode:hover {
  background: rgba(226, 178, 111, 0.12);
  color: #ffffff;
}

.runtimecalc__chip.is-active,
.runtimecalc__mode.is-active {
  background: var(--rc-blue);
  border-color: var(--rc-blue);
  color: #ffffff;
}

.runtimecalc__action {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 2px solid var(--rc-gold);
  font-weight: 700;
  font-size: 14px;
  background: var(--rc-gold);
  color: var(--rc-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.runtimecalc__action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 22px;
  line-height: 1;
}

.runtimecalc__action:hover {
  background: var(--rc-gold-dark);
  border-color: var(--rc-gold-dark);
  color: #ffffff;
}

.runtimecalc__range-head,
.runtimecalc__number-row,
.runtimecalc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.runtimecalc__distance-output,
.runtimecalc__time-output {
  font-weight: 700;
  color: var(--rc-blue-deep);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.runtimecalc__range {
  width: 100%;
  margin: 6px 0 14px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.runtimecalc__range::-webkit-slider-runnable-track {
  height: 6px;
  background: linear-gradient(90deg, var(--rc-blue) 0%, var(--rc-blue-strong) 100%);
  border-radius: 0;
}

.runtimecalc__range::-moz-range-track {
  height: 6px;
  background: linear-gradient(90deg, var(--rc-blue) 0%, var(--rc-blue-strong) 100%);
  border-radius: 0;
}

.runtimecalc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 0;
  background: var(--rc-gold);
  border: 2px solid var(--rc-blue-deep);
  box-shadow: 0 0 0 1px #ffffff;
}

.runtimecalc__range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: var(--rc-gold);
  border: 2px solid var(--rc-blue-deep);
  box-shadow: 0 0 0 1px #ffffff;
}

.runtimecalc__number,
.runtimecalc__text {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--rc-lines-strong);
  border-radius: 0;
  font-size: 16px;
  color: var(--rc-ink);
  background: #ffffff;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.runtimecalc__number {
  max-width: 200px;
}

.runtimecalc__number:focus,
.runtimecalc__text:focus {
  border-color: var(--rc-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(28, 109, 208, 0.16);
}

.runtimecalc__suffix,
.runtimecalc__hint {
  color: var(--rc-ink-muted);
}

.runtimecalc__hint {
  margin: 10px 0 0;
  font-size: 12px;
}

.runtimecalc__error {
  margin: 14px 0 0;
  padding: 10px 12px;
  color: var(--rc-error);
  background: #fdecea;
  border-left: 3px solid var(--rc-error);
  font-size: 13px;
  font-weight: 600;
}

.runtimecalc__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.runtimecalc__result {
  padding: 18px 18px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.runtimecalc__result:nth-child(4n) {
  border-right: 0;
}

.runtimecalc__result:nth-last-child(-n+4) {
  border-bottom: 0;
}

.runtimecalc__result-label {
  margin-bottom: 8px;
  font-family: "Bree Serif", Roboto, Verdana, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5c38b;
  font-weight: 500;
}

.runtimecalc__result-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  font-family: Roboto, Verdana, sans-serif;
}

.runtimecalc__splits {
  margin-top: 0;
}

.runtimecalc__table {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  overflow: hidden;
}

.runtimecalc__table-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  font-family: "Bree Serif", Roboto, Verdana, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bcd1e8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.runtimecalc__row {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.runtimecalc__row:last-child {
  border-bottom: 0;
}

.runtimecalc__row:nth-child(odd) {
  background: rgba(226, 178, 111, 0.08);
}

.runtimecalc__row:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.runtimecalc__row span:first-child {
  color: #dbe5f0;
  font-weight: 600;
}

.runtimecalc__row span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.runtimecalc__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--rc-blue-soft);
  color: var(--rc-blue-deep);
  border: 1px solid #cfe0f4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.runtimecalc__panel--results .runtimecalc__badge {
  background: rgba(226, 178, 111, 0.12);
  color: var(--rc-gold);
  border-color: rgba(226, 178, 111, 0.3);
}

.runtimecalc__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--rc-blue);
  box-shadow: 0 0 0 4px rgba(28, 109, 208, 0.14);
}

.runtimecalc__panel--results .runtimecalc__badge-dot {
  background: var(--rc-gold);
  box-shadow: 0 0 0 4px rgba(226, 178, 111, 0.16);
}

.runtimecalc__share {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.runtimecalc__share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: 56px;
  aspect-ratio: 1 / 1;
  padding: 8px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  border-radius: 0;
}

.runtimecalc__share-btn:nth-child(5n) {
  border-right: 0;
}

.runtimecalc__share-btn.is-primary {
  background: var(--rc-gold);
  border-color: var(--rc-gold);
  color: var(--rc-ink);
}

.runtimecalc__share-btn.is-outline {
  background: transparent;
  border-color: var(--rc-gold);
  color: var(--rc-gold);
}

.runtimecalc__share-btn:hover {
  background: rgba(226, 178, 111, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
}

.runtimecalc__share-btn.is-primary:hover {
  background: var(--rc-gold-dark);
  border-color: var(--rc-gold-dark);
  color: #ffffff;
}

.runtimecalc__share-btn.is-outline:hover {
  background: var(--rc-gold);
  color: var(--rc-ink);
}

.runtimecalc__share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 22px;
  line-height: 1;
}

.runtimecalc__share-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: rgba(226, 178, 111, 0.12);
  color: #e7ca9b;
  border-left: 3px solid var(--rc-gold);
  font-size: 13px;
  font-weight: 600;
}

.runtimecalc__share-status.is-error {
  background: rgba(242, 222, 222);
  color: #7a1e19;
  border-left-color: var(--rc-error);
}

.runtimecalc__login-hint {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(28, 109, 208, 0.1);
  border-left: 3px solid var(--rc-blue);
  color: #cfe0f4;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.runtimecalc__login-hint a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.runtimecalc__login-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  font-size: 14px;
  line-height: 1;
  margin-top: 1px;
}

.runtimecalc__history {
  padding: 28px;
  background: #ffffff;
  border-top: 1px solid var(--rc-lines);
}

.runtimecalc__history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.runtimecalc__history-head-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.runtimecalc__history-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--rc-blue-soft);
  border: 1px solid #cfe0f4;
  color: var(--rc-blue-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.runtimecalc__history-sync-dot {
  width: 8px;
  height: 8px;
  background: #228a5e;
  box-shadow: 0 0 0 4px rgba(34, 138, 94, 0.16);
}

.runtimecalc__history-title {
  margin: 8px 0 6px;
  font-family: "Bree Serif", Roboto, Verdana, sans-serif;
  font-size: 20px;
  color: var(--rc-ink);
  font-weight: 500;
}

.runtimecalc__history-subtitle {
  margin: 0;
  color: var(--rc-ink-muted);
  font-size: 13px;
  max-width: 72ch;
}

.runtimecalc__history-clear {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #d5c6ae;
  border-radius: 0;
  background: var(--rc-gold-soft);
  color: #5b451e;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.runtimecalc__history-clear-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 1;
  font-size: 20px;
}

.runtimecalc__history-clear:hover {
  background: var(--rc-gold);
  border-color: var(--rc-gold);
  color: var(--rc-ink);
  transform: translateY(-1px);
}

.runtimecalc__history-list {
  border: 1px solid var(--rc-lines-strong);
  border-radius: 0;
  overflow: hidden;
}

.runtimecalc__history-empty {
  margin: 0;
  padding: 16px 18px;
  color: var(--rc-ink-muted);
  background: var(--rc-bg);
  font-size: 13px;
}

.runtimecalc__history-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 180px);
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--rc-lines);
  background: #ffffff;
}

.runtimecalc__history-card:nth-child(even) {
  background: #fbfcfd;
}

.runtimecalc__history-card:last-child {
  border-bottom: 0;
}

.runtimecalc__history-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.runtimecalc__history-name {
  margin: 0;
  font-family: "Bree Serif", Roboto, Verdana, sans-serif;
  font-size: 16px;
  color: var(--rc-ink);
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.runtimecalc__history-source {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--rc-lines-strong);
  background: #ffffff;
  color: var(--rc-ink-muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.runtimecalc__history-source.is-server {
  border-color: #cfe0f4;
  background: var(--rc-blue-soft);
  color: var(--rc-blue-deep);
}

.runtimecalc__history-source.is-session {
  border-color: #efe1bf;
  background: #fff7e8;
  color: #7a5b1e;
}

.runtimecalc__history-source.is-local {
  border-color: #d9e6f5;
  background: #f3f8fd;
  color: #2c4f82;
}

.runtimecalc__history-date {
  margin: 0;
  color: var(--rc-ink-muted);
  font-size: 12px;
}

.runtimecalc__history-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--rc-lines);
}

.runtimecalc__history-stat {
  padding: 10px 12px;
  border-right: 1px solid var(--rc-lines);
}

.runtimecalc__history-stat:last-child {
  border-right: 0;
}

.runtimecalc__history-stat-label {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rc-blue-deep);
  font-weight: 700;
}

.runtimecalc__history-stat-value {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--rc-ink);
}

.runtimecalc__history-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  align-content: flex-end;
  gap: 10px;
}

.runtimecalc__history-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  border: 1px solid var(--rc-blue);
  background: #ffffff;
  color: var(--rc-blue-deep);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.runtimecalc__history-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 1;
  font-size: 18px;
}

.runtimecalc__history-button:hover {
  background: var(--rc-blue-soft);
  transform: translateY(-1px);
}

.runtimecalc__history-button.is-primary {
  background: var(--rc-blue);
  color: #ffffff;
  border-color: var(--rc-blue);
}

.runtimecalc__history-button.is-primary:hover {
  background: var(--rc-blue-strong);
  border-color: var(--rc-blue-strong);
  color: #ffffff;
}

.runtimecalc__history-button.is-ghost {
  border-color: #e3d3b4;
  color: #6d522a;
  background: #fff9ef;
}

.runtimecalc__history-button.is-ghost:hover {
  background: var(--rc-gold-soft);
}

.runtimecalc__footer {
  padding: 14px 28px;
  background: var(--rc-paper);
  color: var(--rc-ink-muted);
  font-size: 12px;
  border-top: 1px solid var(--rc-lines);
}

.runtimecalc__footer strong {
  color: var(--rc-blue-deep);
}

@media (max-width: 980px) {
  .runtimecalc__body {
    grid-template-columns: 1fr;
  }

  .runtimecalc__panel--controls {
    border-right: 0;
    border-bottom: 1px solid var(--rc-lines);
  }

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

  .runtimecalc__result:nth-child(2n) {
    border-right: 0;
  }

  .runtimecalc__result:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .runtimecalc__result:nth-last-child(-n+4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .runtimecalc__result:nth-last-child(-n+2) {
    border-bottom: 0;
  }

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

  .runtimecalc__share-btn:nth-child(5n) {
    border-right: 0;
  }

  .runtimecalc__history {
    padding: 22px 18px;
  }

  .runtimecalc__history-card {
    grid-template-columns: 1fr;
  }

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

  .runtimecalc__history-stat:nth-child(2n) {
    border-right: 0;
  }

  .runtimecalc__history-actions {
    align-items: stretch;
    justify-content: flex-start;
  }

  .runtimecalc__history-button {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 640px) {
  .runtimecalc__topbar,
  .runtimecalc__hero,
  .runtimecalc__panel,
  .runtimecalc__footer,
  .runtimecalc__history {
    padding-left: 18px;
    padding-right: 18px;
  }

  .runtimecalc__title {
    font-size: 22px;
  }

  .runtimecalc__buttons,
  .runtimecalc__mode-switch {
    border-right: 1px solid var(--rc-lines-strong);
  }

  .runtimecalc__chip,
  .runtimecalc__mode {
    flex: 1 1 50%;
  }

  .runtimecalc__result-value {
    font-size: 20px;
  }

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

  .runtimecalc__share-btn:nth-child(5n) {
    border-right: 0;
  }

  .runtimecalc__share-btn {
    min-height: 52px;
  }

  .runtimecalc__history-head {
    flex-direction: row;
    align-items: flex-start;
  }

  .runtimecalc__history-clear {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }

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

/* ===========================
   RuntimeCalc Suite: 5 Tabs
   =========================== */
.runtimecalc__tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rc-lines);
  border-bottom: 1px solid var(--rc-lines);
  background: #ffffff;
}

.runtimecalc__tab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 12px 10px;
  border: 0;
  border-right: 1px solid var(--rc-lines-strong);
  border-bottom: 3px solid transparent;
  background: #ffffff;
  color: var(--rc-blue-deep);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border-radius: 0;
}

.runtimecalc__tab:last-child {
  border-right: 0;
}

.runtimecalc__tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 22px;
  line-height: 1;
}

.runtimecalc__tab-label {
  text-align: center;
  line-height: 1.2;
}

.runtimecalc__tab:hover {
  background: var(--rc-blue-soft);
  color: var(--rc-ink);
}

.runtimecalc__tab.is-active {
  background: var(--rc-gold-soft);
  color: var(--rc-ink);
  border-bottom-color: var(--rc-gold);
}

.runtimecalc__tool {
  display: none;
}

.runtimecalc__tool.is-active {
  display: block;
}

@media (max-width: 980px) {
  .runtimecalc__tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .runtimecalc__tab-label {
    display: none;
  }
  .runtimecalc__tab {
    min-height: 64px;
  }
}

@media (max-width: 640px) {
  .runtimecalc__tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .runtimecalc__tab {
    min-height: 60px;
    padding: 10px 6px;
  }
  .runtimecalc__tab-icon {
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
}

.runtimecalc__tool-hero {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
  border: 1px solid var(--rc-border);
  border-left: 4px solid var(--rc-blue);
  padding: 24px 28px;
  margin-bottom: 18px;
}
.runtimecalc__tool-eyebrow {
  margin: 0 0 6px 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rc-blue);
}
.runtimecalc__tool-title {
  margin: 0 0 10px 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--rc-ink);
  font-family: inherit;
}
.runtimecalc__tool-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--rc-ink-soft);
}
@media (max-width: 980px) {
  .runtimecalc__tool-hero {
    padding: 18px 18px;
  }
  .runtimecalc__tool-title {
    font-size: 19px;
  }
  .runtimecalc__tool-subtitle {
    font-size: 13.5px;
  }
}
@media (max-width: 640px) {
  .runtimecalc__tool-hero {
    padding: 16px 14px;
    border-left-width: 3px;
  }
  .runtimecalc__tool-title {
    font-size: 17px;
  }
  .runtimecalc__tool-subtitle {
    font-size: 13px;
  }
}
