@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');

.timiix-howlong-tool {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 12px;
  box-sizing: border-box;
  color: #0B1730;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.timiix-howlong-tool *,
.timiix-howlong-tool *::before,
.timiix-howlong-tool *::after {
  box-sizing: border-box;
}

.timiix-howlong-hero {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.timiix-howlong-hero h1 {
  margin: 0;
  color: #0B1730;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.timiix-howlong-hero p {
  margin: 12px 0 0;
  color: #52627A;
  font-size: 17px;
  line-height: 1.55;
}

.timiix-howlong-box {
  width: 100%;
  padding: 30px;
  overflow: hidden;
  border: 1px solid #D9E2F0;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(34, 57, 104, 0.10), 0 3px 10px rgba(34, 57, 104, 0.04);
}

.timiix-howlong-header,
.timiix-howlong-controls,
.timiix-howlong-live-meta,
.timiix-howlong-time-row,
.timiix-howlong-actions,
.timiix-howlong-status {
  display: flex;
  align-items: center;
}

.timiix-howlong-header {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.timiix-howlong-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #3154C8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.timiix-howlong-target-summary {
  display: block;
  font-size: 18px;
  line-height: 1.3;
}

.timiix-howlong-live-meta {
  gap: 8px;
  color: #52627A;
  font-size: 12px;
  white-space: nowrap;
}

.timiix-howlong-live-dot,
.timiix-howlong-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #087A45;
}

.timiix-howlong-live-dot {
  box-shadow: 0 0 0 5px rgba(8, 122, 69, .10);
  animation: timiix-howlong-pulse 2s ease-in-out infinite;
}

.timiix-howlong-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timiix-howlong-count-card,
.timiix-howlong-info-card {
  border: 1px solid #D9E2F0;
  border-radius: 16px;
  background: #fff;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.timiix-howlong-count-card {
  min-height: 132px;
  padding: 21px 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(34, 57, 104, .05);
}

.timiix-howlong-count-card:hover,
.timiix-howlong-info-card:hover {
  border-color: #AABCEB;
  box-shadow: 0 10px 24px rgba(49, 84, 200, .10);
  transform: translateY(-2px);
}

.timiix-howlong-value {
  display: block;
  color: #3154C8;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 800;
}

.timiix-howlong-count-card span {
  display: block;
  margin-top: 13px;
  color: #52627A;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.timiix-howlong-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.timiix-howlong-info-card {
  min-width: 0;
  padding: 16px 18px;
}

.timiix-howlong-info-card span {
  display: block;
  margin-bottom: 7px;
  color: #52627A;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.timiix-howlong-info-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.35;
}

.timiix-howlong-controls {
  justify-content: space-between;
  gap: 22px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #E8EEF6;
}

.timiix-howlong-field {
  min-width: 220px;
}

.timiix-howlong-field label {
  display: block;
  margin-bottom: 8px;
  color: #0B1730;
  font-size: 13px;
  font-weight: 700;
}

.timiix-howlong-time-row {
  gap: 8px;
}

.timiix-howlong-tool input,
.timiix-howlong-tool select,
.timiix-howlong-tool button {
  min-height: 48px;
  border-radius: 11px;
  font: inherit;
}

.timiix-howlong-tool input,
.timiix-howlong-tool select {
  border: 1px solid #C9D6E8;
  background: #fff;
  color: #0B1730;
  padding: 0 13px;
  outline: none;
}

.timiix-howlong-tool input {
  width: 150px;
}

.timiix-howlong-tool select {
  width: 86px;
}

.timiix-howlong-tool input:focus-visible,
.timiix-howlong-tool select:focus-visible,
.timiix-howlong-tool button:focus-visible {
  outline: 3px solid rgba(49, 84, 200, .24);
  outline-offset: 2px;
  border-color: #3154C8;
}

.timiix-howlong-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.timiix-howlong-button {
  cursor: pointer;
  border: 1px solid #C9D6E8;
  padding: 0 17px;
  color: #0B1730;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.timiix-howlong-button:hover {
  border-color: #3154C8;
  box-shadow: 0 5px 13px rgba(49, 84, 200, .12);
  transform: translateY(-1px);
}

.timiix-howlong-button:active {
  transform: translateY(0);
}

.timiix-howlong-update {
  border-color: #3154C8;
  color: #fff;
  background: #3154C8;
}

.timiix-howlong-update:hover {
  background: #2746AE;
}

.timiix-howlong-status {
  gap: 9px;
  margin-top: 21px;
  color: #087A45;
  font-size: 13px;
  font-weight: 650;
}

@keyframes timiix-howlong-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

@media (min-width: 320px) and (max-width: 374px) {
  .timiix-howlong-tool { padding: 22px 12px; }
  .timiix-howlong-hero { margin-bottom: 18px; }
  .timiix-howlong-hero h1 { font-size: 29px; }
  .timiix-howlong-hero p { font-size: 14px; }
  .timiix-howlong-box { padding: 18px 14px; border-radius: 22px; }
  .timiix-howlong-header { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 18px; }
  .timiix-howlong-countdown { gap: 9px; }
  .timiix-howlong-count-card { min-height: 102px; padding: 17px 8px; }
  .timiix-howlong-value { font-size: 35px; }
  .timiix-howlong-count-card span { margin-top: 10px; font-size: 10px; }
  .timiix-howlong-info-grid { gap: 9px; margin-top: 16px; grid-template-columns: 1fr; }
  .timiix-howlong-controls { align-items: stretch; flex-direction: column; gap: 16px; margin-top: 19px; padding-top: 18px; }
  .timiix-howlong-field { min-width: 0; }
  .timiix-howlong-time-row input { width: 100%; }
  .timiix-howlong-actions { display: grid; grid-template-columns: 1fr; }
  .timiix-howlong-button { width: 100%; }
}

@media (min-width: 375px) and (max-width: 429px) {
  .timiix-howlong-tool { padding: 25px 12px; }
  .timiix-howlong-hero h1 { font-size: 32px; }
  .timiix-howlong-hero p { font-size: 15px; }
  .timiix-howlong-box { padding: 21px 17px; border-radius: 23px; }
  .timiix-howlong-header { align-items: flex-start; flex-direction: column; gap: 9px; }
  .timiix-howlong-countdown { gap: 10px; }
  .timiix-howlong-count-card { min-height: 112px; padding: 19px 8px; }
  .timiix-howlong-value { font-size: 39px; }
  .timiix-howlong-info-grid { grid-template-columns: 1fr; gap: 10px; }
  .timiix-howlong-controls { align-items: stretch; flex-direction: column; gap: 17px; }
  .timiix-howlong-field { min-width: 0; }
  .timiix-howlong-time-row input { width: 100%; }
  .timiix-howlong-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .timiix-howlong-copy { grid-column: 1 / -1; }
}

@media (min-width: 430px) and (max-width: 767px) {
  .timiix-howlong-tool { padding: 28px 12px; }
  .timiix-howlong-hero h1 { font-size: 35px; }
  .timiix-howlong-hero p { font-size: 16px; }
  .timiix-howlong-box { padding: 24px; }
  .timiix-howlong-count-card { min-height: 122px; }
  .timiix-howlong-value { font-size: 43px; }
  .timiix-howlong-info-grid { grid-template-columns: 1fr; }
  .timiix-howlong-controls { align-items: stretch; flex-direction: column; }
  .timiix-howlong-field { min-width: 0; }
  .timiix-howlong-time-row input { width: 100%; }
  .timiix-howlong-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .timiix-howlong-button { padding: 0 10px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .timiix-howlong-tool { width: 94%; padding: 35px 0; }
  .timiix-howlong-hero h1 { font-size: 42px; }
  .timiix-howlong-box { padding: 27px; }
  .timiix-howlong-value { font-size: 46px; }
  .timiix-howlong-count-card { min-height: 125px; }
  .timiix-howlong-actions { gap: 7px; }
  .timiix-howlong-button { padding: 0 12px; }
}

@media (min-width: 1024px) {
  .timiix-howlong-tool { padding-top: 40px; padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .timiix-howlong-tool *,
  .timiix-howlong-tool *::before,
  .timiix-howlong-tool *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .timiix-howlong-count-card:hover,
  .timiix-howlong-info-card:hover,
  .timiix-howlong-button:hover,
  .timiix-howlong-button:active {
    transform: none;
  }
}