.current-time-card {
  display: flex;
  margin-bottom: 22px;
  padding: 24px 26px;
  border: 1px solid rgba(104, 189, 156, 0.32);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(229, 245, 238, 0.92), rgba(255, 255, 255, 0.84));
  box-shadow: 0 15px 45px rgba(48, 84, 72, 0.07);
  align-items: center;
  justify-content: space-between;
}

.current-time-card > div:first-child {
  display: flex;
  flex-direction: column;
}

.live-label {
  display: inline-flex;
  margin-bottom: 10px;
  gap: 7px;
  align-items: center;
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.live-label button {
  height: 25px;
  margin-left: 4px;
  padding: 0 9px;
  border: 1px solid rgba(52, 133, 107, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--mint-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.live-label button:hover {
  border-color: var(--mint);
  background: #fff;
}

.live-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(104, 189, 156, 0.13);
}

.current-time-card.is-paused .live-label i {
  background: #9aa9a4;
  box-shadow: 0 0 0 5px rgba(154, 169, 164, 0.14);
}

.current-time-card.is-paused .live-label {
  color: var(--muted);
}

#current-time {
  margin-bottom: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: -0.03em;
}

#current-timezone {
  color: var(--muted);
  font-size: 12px;
}

.live-timestamps {
  display: flex;
  gap: 10px;
}

.live-timestamps button {
  display: flex;
  min-width: 176px;
  padding: 14px 16px;
  border: 1px solid rgba(104, 189, 156, 0.26);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  cursor: pointer;
  flex-direction: column;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease;
}

.live-timestamps button:hover {
  border-color: var(--mint);
  transform: translateY(-2px);
}

.live-timestamps span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.live-timestamps strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
}

.converter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.converter-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.converter-heading {
  margin-bottom: 25px;
}

.converter-heading h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.converter-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.field-label {
  display: block;
  margin: 16px 0 8px;
  color: #4e625d;
  font-size: 12px;
  font-weight: 700;
}

.text-input,
.select-input {
  width: 100%;
  height: 45px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: #fbfdfc;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.text-input:focus,
.select-input:focus {
  border-color: rgba(104, 189, 156, 0.75);
  box-shadow: 0 0 0 4px rgba(104, 189, 156, 0.08);
}

.code-input {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.format-presets {
  display: flex;
  margin-top: 8px;
  gap: 6px;
  flex-wrap: wrap;
}

.format-preset {
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.format-preset:hover {
  border-color: #b8d9cc;
  color: var(--mint-dark);
}

.format-preset.active {
  border-color: rgba(104, 189, 156, 0.42);
  background: var(--mint-soft);
  color: var(--mint-dark);
  font-weight: 700;
}

.input-with-action {
  position: relative;
}

.input-with-action .text-input {
  padding-right: 94px;
}

.inline-button {
  position: absolute;
  top: 6px;
  right: 6px;
  height: 33px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: var(--mint-soft);
  color: var(--mint-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.format-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.convert-button {
  width: 100%;
  margin-top: 22px;
}

.result-box {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #e5eeea;
  border-radius: 14px;
  background: #f7faf8;
}

.result-box[hidden] {
  display: none;
}

.result-box > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.result-box > div {
  display: flex;
  min-height: 28px;
  gap: 9px;
  align-items: center;
}

.result-box strong {
  overflow: hidden;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-box button {
  margin-left: auto;
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--mint-dark);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.result-box small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.timestamp-results > div + div {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.timestamp-results label {
  width: 34px;
  color: var(--muted);
  font-size: 11px;
}

.timestamp-status {
  min-height: 20px;
  margin: 14px 4px 0;
  color: var(--mint-dark);
  font-size: 12px;
}

@media (max-width: 900px) {
  .current-time-card {
    gap: 20px;
    align-items: stretch;
    flex-direction: column;
  }

  .live-timestamps button {
    min-width: 0;
    flex: 1;
  }
}

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

@media (max-width: 520px) {
  .current-time-card,
  .converter-card {
    padding: 18px;
    border-radius: 20px;
  }

  .live-timestamps {
    flex-direction: column;
  }
}
