@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.time-in-page {
  position: relative;
  width: 100%;
  background: #f8fafc;
  color: #172033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.time-in-page,
.time-in-page * {
  box-sizing: border-box;
}

.time-in-page .time-in-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.time-in-page .time-in-header {
  text-align: center;
  margin: 0 auto;
}

.time-in-page .time-in-title {
  margin: 0;
  color: #111827;
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: 0;
}

.time-in-page .time-in-subtitle {
  max-width: 680px;
  margin: 14px auto 0;
  color: #475569;
  font-weight: 450;
  line-height: 1.6;
  letter-spacing: 0;
}

.time-in-page .time-in-tool {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #dbe6f3;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10), 0 2px 10px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.time-in-page .time-in-main {
  text-align: center;
  border-bottom: 1px solid #e6eef8;
}

.time-in-page .time-in-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2556c7;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.time-in-page .time-in-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #14b8d8;
  box-shadow: 0 0 0 5px rgba(20, 184, 216, 0.14);
}

.time-in-page .time-in-tool-title {
  margin: 12px 0 0;
  color: #334155;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0;
}

.time-in-page .time-in-clock {
  margin: 18px auto 0;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.time-in-page .time-in-date-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: #475569;
  font-weight: 560;
  line-height: 1.45;
}

.time-in-page .time-in-day {
  color: #24344d;
}

.time-in-page .time-in-date {
  color: #64748b;
}

.time-in-page .time-in-details {
  display: grid;
  border-bottom: 1px solid #e6eef8;
}

.time-in-page .time-in-detail {
  min-width: 0;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e6eef8;
  border-radius: 16px;
}

.time-in-page .time-in-detail-label {
  display: block;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 720;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.time-in-page .time-in-detail-value {
  display: block;
  margin-top: 7px;
  color: #172033;
  font-weight: 660;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.time-in-page .time-in-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.time-in-page .time-in-toggle,
.time-in-page .time-in-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.time-in-page .time-in-toggle {
  padding: 6px;
  background: #eef5ff;
  border: 1px solid #d9e8fb;
  border-radius: 999px;
}

.time-in-page .time-in-button {
  appearance: none;
  border: 1px solid #c8d7ec;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2a44;
  cursor: pointer;
  font: inherit;
  font-weight: 730;
  line-height: 1.2;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.time-in-page .time-in-button:hover {
  background: #f1f7ff;
  border-color: #9db9e2;
}

.time-in-page .time-in-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.time-in-page .time-in-button:active {
  transform: translateY(1px);
}

.time-in-page .time-in-toggle-button.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.22);
}

.time-in-page .time-in-copy {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.time-in-page .time-in-copy:hover {
  background: #1e293b;
  border-color: #1e293b;
}

.time-in-page .time-in-refresh {
  background: #ffffff;
  color: #2556c7;
}

.time-in-page .time-in-status {
  min-height: 1.45em;
  margin: 0;
  color: #2563eb;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .time-in-page .time-in-button {
    transition: none;
  }

  .time-in-page .time-in-button:active {
    transform: none;
  }
}

@media (min-width: 320px) and (max-width: 374px) {
  .time-in-page .time-in-inner {
    padding: 26px 12px;
  }

  .time-in-page .time-in-title {
    font-size: 1.85rem;
  }

  .time-in-page .time-in-subtitle {
    font-size: 0.96rem;
  }

  .time-in-page .time-in-tool {
    margin-top: 24px;
    border-radius: 18px;
  }

  .time-in-page .time-in-main {
    padding: 24px 14px 22px;
  }

  .time-in-page .time-in-tool-title {
    font-size: 1rem;
  }

  .time-in-page .time-in-clock {
    font-size: clamp(2.15rem, 2.15rem, 2.15rem);
  }

  .time-in-page .time-in-date-row {
    gap: 4px 12px;
    margin-top: 14px;
    font-size: 0.95rem;
  }

  .time-in-page .time-in-details {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .time-in-page .time-in-detail-value {
    font-size: 0.98rem;
  }

  .time-in-page .time-in-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .time-in-page .time-in-toggle,
  .time-in-page .time-in-actions {
    width: 100%;
  }

  .time-in-page .time-in-toggle-button,
  .time-in-page .time-in-actions .time-in-button {
    flex: 1 1 100%;
  }

  .time-in-page .time-in-button {
    min-height: 46px;
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .time-in-page .time-in-status {
    padding: 0 14px 18px;
    font-size: 0.92rem;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .time-in-page .time-in-inner {
    padding: 30px 16px;
  }

  .time-in-page .time-in-title {
    font-size: 2.05rem;
  }

  .time-in-page .time-in-subtitle {
    font-size: 1rem;
  }

  .time-in-page .time-in-tool {
    margin-top: 26px;
    border-radius: 20px;
  }

  .time-in-page .time-in-main {
    padding: 28px 18px 24px;
  }

  .time-in-page .time-in-tool-title {
    font-size: 1.05rem;
  }

  .time-in-page .time-in-clock {
    font-size: clamp(2.55rem, 2.55rem, 2.55rem);
  }

  .time-in-page .time-in-date-row {
    gap: 5px 14px;
    margin-top: 15px;
    font-size: 1rem;
  }

  .time-in-page .time-in-details {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 16px;
  }

  .time-in-page .time-in-detail-value {
    font-size: 1rem;
  }

  .time-in-page .time-in-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    padding: 16px;
  }

  .time-in-page .time-in-toggle,
  .time-in-page .time-in-actions {
    width: 100%;
  }

  .time-in-page .time-in-toggle-button,
  .time-in-page .time-in-actions .time-in-button {
    flex: 1 1 0;
  }

  .time-in-page .time-in-button {
    min-height: 46px;
    padding: 12px 15px;
    font-size: 0.96rem;
  }

  .time-in-page .time-in-status {
    padding: 0 16px 20px;
    font-size: 0.93rem;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .time-in-page .time-in-inner {
    padding: 36px 20px;
  }

  .time-in-page .time-in-title {
    font-size: 2.35rem;
  }

  .time-in-page .time-in-subtitle {
    font-size: 1.04rem;
  }

  .time-in-page .time-in-tool {
    margin-top: 30px;
    border-radius: 22px;
  }

  .time-in-page .time-in-main {
    padding: 34px 24px 28px;
  }

  .time-in-page .time-in-tool-title {
    font-size: 1.12rem;
  }

  .time-in-page .time-in-clock {
    font-size: clamp(3rem, 3rem, 3rem);
  }

  .time-in-page .time-in-date-row {
    gap: 6px 16px;
    margin-top: 16px;
    font-size: 1.05rem;
  }

  .time-in-page .time-in-details {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px;
  }

  .time-in-page .time-in-detail-value {
    font-size: 1.01rem;
  }

  .time-in-page .time-in-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
  }

  .time-in-page .time-in-toggle,
  .time-in-page .time-in-actions {
    width: 100%;
  }

  .time-in-page .time-in-toggle-button,
  .time-in-page .time-in-actions .time-in-button {
    flex: 1 1 0;
  }

  .time-in-page .time-in-button {
    min-height: 48px;
    padding: 13px 16px;
    font-size: 0.98rem;
  }

  .time-in-page .time-in-status {
    padding: 0 18px 22px;
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .time-in-page .time-in-inner {
    padding: 52px 28px;
  }

  .time-in-page .time-in-title {
    font-size: 3rem;
  }

  .time-in-page .time-in-subtitle {
    font-size: 1.1rem;
  }

  .time-in-page .time-in-tool {
    margin-top: 34px;
    border-radius: 24px;
  }

  .time-in-page .time-in-main {
    padding: 42px 36px 34px;
  }

  .time-in-page .time-in-tool-title {
    font-size: 1.16rem;
  }

  .time-in-page .time-in-clock {
    font-size: clamp(4.15rem, 4.15rem, 4.15rem);
  }

  .time-in-page .time-in-date-row {
    gap: 8px 18px;
    margin-top: 18px;
    font-size: 1.12rem;
  }

  .time-in-page .time-in-details {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 22px;
  }

  .time-in-page .time-in-detail-value {
    font-size: 1.04rem;
  }

  .time-in-page .time-in-controls {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px;
  }

  .time-in-page .time-in-button {
    min-height: 46px;
    padding: 12px 18px;
    font-size: 0.98rem;
  }

  .time-in-page .time-in-status {
    padding: 0 22px 24px;
    font-size: 0.96rem;
  }
}

@media (min-width: 1024px) {
  .time-in-page .time-in-inner {
    padding: 64px 32px;
  }

  .time-in-page .time-in-title {
    font-size: 3.35rem;
  }

  .time-in-page .time-in-subtitle {
    font-size: 1.12rem;
  }

  .time-in-page .time-in-tool {
    margin-top: 38px;
    border-radius: 24px;
  }

  .time-in-page .time-in-main {
    padding: 48px 44px 38px;
  }

  .time-in-page .time-in-tool-title {
    font-size: 1.18rem;
  }

  .time-in-page .time-in-clock {
    font-size: clamp(5rem, 5rem, 5rem);
  }

  .time-in-page .time-in-date-row {
    gap: 8px 20px;
    margin-top: 20px;
    font-size: 1.15rem;
  }

  .time-in-page .time-in-details {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 24px;
  }

  .time-in-page .time-in-detail-value {
    font-size: 1.02rem;
  }

  .time-in-page .time-in-controls {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
    padding: 24px;
  }

  .time-in-page .time-in-button {
    min-height: 46px;
    padding: 12px 20px;
    font-size: 0.98rem;
  }

  .time-in-page .time-in-status {
    padding: 0 24px 26px;
    font-size: 0.96rem;
  }
}