.tkx-clock-widget {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1200;
  pointer-events: none;
}

.tkx-clock-widget__fab,
.tkx-clock-widget__backdrop {
  display: none;
}

.tkx-clock-widget__panel {
  min-width: 240px;
  max-width: min(360px, 46vw);
  padding: 12px 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(20, 26, 42, 0.88), rgba(10, 14, 26, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.tkx-clock-widget__time {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}

.tkx-clock-widget__date {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.tkx-clock-widget__date--lunar {
  margin-top: 2px;
  color: rgba(214, 231, 255, 0.86);
}

.tkx-clock-widget__fortune {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.92);
  max-width: 320px;
}

.tkx-clock-widget__fortune-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.tkx-clock-widget__fortune-title small {
  font-size: 11px;
  font-weight: 600;
  color: rgba(214, 231, 255, 0.76);
}

.tkx-clock-widget__fortune-line {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  margin-top: 4px;
}

.tkx-clock-widget__fortune-line b {
  color: rgba(255,255,255,.72);
}

.tkx-clock-widget__fortune-line span {
  min-width: 0;
  word-break: break-word;
}

html[data-tkx-theme="day"] .tkx-clock-widget__panel {
  color: #22372c;
  background: linear-gradient(180deg, rgba(253,252,245,.94), rgba(238,246,235,.90));
  border-color: rgba(102,132,95,.16);
  box-shadow: 0 10px 24px rgba(55,86,70,.10);
}
html[data-tkx-theme="day"] .tkx-clock-widget__time { color: #233a2e; }
html[data-tkx-theme="day"] .tkx-clock-widget__date { color: #556d5c; }
html[data-tkx-theme="day"] .tkx-clock-widget__date--lunar { color: #617667; }
html[data-tkx-theme="day"] .tkx-clock-widget__fortune {
  color: #496151;
  border-top-color: rgba(102,132,95,.12);
}
html[data-tkx-theme="day"] .tkx-clock-widget__fortune-title small { color: #78907c; }
html[data-tkx-theme="day"] .tkx-clock-widget__fortune-line b { color: #6d856f; }

@media (max-width: 680px) {
  .tkx-clock-widget {
    top: auto;
    bottom: 10px;
    right: 10px;
    z-index: 1300;
    pointer-events: auto;
  }
  .tkx-clock-widget__fab {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    background: linear-gradient(180deg, rgba(20, 26, 42, 0.96), rgba(10, 14, 26, 0.92));
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(0,0,0,.24);
    backdrop-filter: blur(6px);
  }
  html[data-tkx-theme="day"] .tkx-clock-widget__fab {
    background: linear-gradient(180deg, rgba(253,252,245,.96), rgba(237,245,233,.92));
    color: #456b53;
    border-color: rgba(102,132,95,.18);
    box-shadow: 0 10px 24px rgba(55,86,70,.12);
  }
  .tkx-clock-widget__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    border: 0;
    background: rgba(3, 5, 10, 0.46);
  }
  .tkx-clock-widget__panel {
    min-width: 210px;
    max-width: min(92vw, 420px);
    padding: 10px 12px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 62px;
    z-index: 2;
    transform: translateY(8px) scale(.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
  }
  .tkx-clock-widget.is-open .tkx-clock-widget__backdrop { display: block; }
  .tkx-clock-widget.is-open .tkx-clock-widget__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .tkx-clock-widget__time { font-size: 24px; }
  .tkx-clock-widget__date { font-size: 12px; }
  .tkx-clock-widget__fortune { max-width: 100%; font-size: 11px; }
  .tkx-clock-widget__fortune-line { grid-template-columns: 28px 1fr; gap: 6px; }
}
