/* FWF Clock Widget */
.fwf-clock {
  --fwc-size: 72px;
  --fwc-panel-w: 200px;
  --fwc-radius: 999px;
  --fwc-blur: 16px;
  --fwc-bg: rgba(255, 255, 255, 0.55);
  --fwc-border: rgba(255, 255, 255, 0.45);
  --fwc-text: #0f172a;
  --fwc-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
  width: var(--fwc-size);
  height: var(--fwc-size);
  border-radius: var(--fwc-radius);
  background: var(--fwc-bg);
  border: 1px solid var(--fwc-border);
  box-shadow: var(--fwc-shadow);
  backdrop-filter: blur(var(--fwc-blur));
  -webkit-backdrop-filter: blur(var(--fwc-blur));
  color: var(--fwc-text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  user-select: none;
  touch-action: none;
  cursor: grab;
  transition:
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
}
.fwf-clock.is-dragging { cursor: grabbing; box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28); transition: none; }
.fwf-clock.is-snapping { transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
.fwf-clock.is-magnet { outline: 2px solid rgba(59, 130, 246, 0.45); }
.fwf-clock-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}
.fwf-clock-panel {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 16px;
  width: 100%;
  box-sizing: border-box;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.18s ease 0.06s;
}
.fwf-clock.is-open {
  width: var(--fwc-panel-w);
  height: 84px;
  border-radius: 18px;
  cursor: default;
}
.fwf-clock.is-open .fwf-clock-face { display: none; }
.fwf-clock.is-open .fwf-clock-panel { display: flex; opacity: 1; }
.fwf-clock.expand-left.is-open {
  margin-left: calc(var(--fwc-size) - var(--fwc-panel-w));
}
/* 纵向：JS 用 transform 补偿；class 供主题识别 */
.fwf-clock.expand-down.is-open {
  /* 实际位移在 host applyTransform；此处仅作状态标记 */
}
.fwf-clock-full {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.fwf-clock-date { font-size: 12px; opacity: 0.75; line-height: 1.3; }
/* hint removed */
@media (max-width: 600px) {
  .fwf-clock { --fwc-size: 56px; --fwc-panel-w: 180px; }
  .fwf-clock-face { font-size: 13px; }
  .fwf-clock.is-open { height: 80px; }
}
@media (prefers-color-scheme: dark) {
  .fwf-clock {
    --fwc-bg: rgba(30, 41, 59, 0.72);
    --fwc-border: rgba(148, 163, 184, 0.25);
    --fwc-text: #f1f5f9;
    --fwc-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}
