/* ==========================================================================
   Zeon OS - DESKTOP CANVAS & WALLPAPER STYLING
   ========================================================================== */

#desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: var(--z-desktop);
}

/* Wallpaper layer */
.wallpaper-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
}

/* Desktop Icon Grid Area — shortcuts are removed in every UI style
   (clean wallpaper surface), so the layer is never displayed. */
.desktop-workspace {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--taskbar-height);
  padding: 16px;
  display: none;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px;
  z-index: 3;
}

/* Desktop Icon */
.desktop-icon {
  width: 84px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.desktop-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.desktop-icon.selected {
  background-color: var(--accent-light);
  border-color: var(--accent);
}

.desktop-icon-img {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: var(--accent);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-fast);
}

.desktop-icon:hover .desktop-icon-img {
  transform: scale(1.08);
}

.desktop-icon-label {
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.7);
  word-break: break-word;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   STYLE NO. 1 — MONOCHROME MINIMAL DESKTOP
   Right-edge shortcut column, floating music + clock widgets
   ========================================================================== */

/* Application shortcuts: narrow vertical column near the right edge */
[data-ui-style="1"] .desktop-workspace {
  top: 30%;
  left: auto;
  right: 20px;
  bottom: auto;
  width: auto;
  height: auto;
  max-height: 55vh;
  overflow: hidden;
  padding: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

[data-ui-style="1"] .desktop-icon {
  width: 34px;
  min-height: 34px;
  padding: 7px;
  border-radius: 8px;
  border: 1px solid transparent;
}

[data-ui-style="1"] .desktop-icon:hover {
  background-color: rgba(20, 22, 26, 0.08);
  border-color: transparent;
  transform: none;
}

[data-ui-style="1"] .desktop-icon.selected {
  background-color: rgba(20, 22, 26, 0.12);
  border-color: rgba(20, 22, 26, 0.2);
}

[data-ui-style="1"] .desktop-icon-img {
  width: 20px;
  height: 20px;
  margin-bottom: 0;
  color: #14161a;
  filter: none;
  transition: opacity var(--transition-fast);
}

[data-ui-style="1"] .desktop-icon-img svg {
  width: 20px;
  height: 20px;
}

[data-ui-style="1"] .desktop-icon:hover .desktop-icon-img {
  transform: none;
  opacity: 0.6;
}

[data-ui-style="1"] .desktop-icon-label {
  display: none;
}

/* Floating widget layer */
.desktop-widgets {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.desktop-widget {
  display: none;
}

[data-ui-style="1"] .desktop-widget {
  display: flex;
  pointer-events: auto;
}

.desktop-widget[hidden] {
  display: none !important;
}

/* Music widget — upper-left */
[data-ui-style="1"] .music-widget {
  position: absolute;
  left: 6vw;
  top: 13vh;
  width: clamp(175px, 15vw, 230px);
  align-items: center;
  gap: 10px;
  color: #14161a;
}

[data-ui-style="1"] .music-art {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(20, 22, 26, 0.08);
  color: #14161a;
}

[data-ui-style="1"] .music-art svg {
  width: 18px;
  height: 18px;
}

[data-ui-style="1"] .music-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-ui-style="1"] .music-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

[data-ui-style="1"] .music-title {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #14161a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-ui-style="1"] .music-artist {
  font-size: 10px;
  line-height: 1.3;
  color: rgba(20, 22, 26, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-ui-style="1"] .music-progress {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(20, 22, 26, 0.18);
  overflow: hidden;
}

[data-ui-style="1"] .music-progress-bar {
  width: 0%;
  height: 100%;
  background: #14161a;
  transition: width 0.15s linear;
}

[data-ui-style="1"] .music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-ui-style="1"] .music-controls button {
  width: 16px;
  height: 16px;
  padding: 0;
  color: #14161a;
  opacity: 0.7;
}

[data-ui-style="1"] .music-controls button:hover {
  opacity: 1;
  transform: none;
}

[data-ui-style="1"] .music-controls svg {
  width: 13px;
  height: 13px;
}

[data-ui-style="1"] .music-controls #music-open {
  margin-left: auto;
  opacity: 0.5;
}

/* Clock & date widget — upper-right */
[data-ui-style="1"] .desktop-clock {
  position: absolute;
  right: 17vw;
  top: 16vh;
  align-items: flex-start;
  gap: 14px;
  color: #0f1115;
}

[data-ui-style="1"] .clock-time {
  font-family: 'Bebas Neue', 'Oswald', var(--font-sans);
  font-size: calc(clamp(72px, 6.2vw, 120px) * var(--clock-scale, 1));
  line-height: 0.82;
  letter-spacing: 1px;
  color: var(--clock-color, #0f1115);
}

[data-ui-style="1"] .clock-date {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
  font-family: 'Oswald', var(--font-sans);
}

[data-ui-style="1"] .clock-month {
  font-size: calc(clamp(14px, 1.1vw, 20px) * var(--clock-scale, 1));
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clock-color, rgba(15, 17, 21, 0.75));
}

[data-ui-style="1"] .clock-day {
  font-family: 'Bebas Neue', 'Oswald', var(--font-sans);
  font-size: calc(clamp(36px, 3vw, 56px) * var(--clock-scale, 1));
  font-weight: 600;
  line-height: 1;
  color: var(--clock-color, #0f1115);
}

/* Responsive tuning for smaller desktop displays */
@media (max-width: 1100px) {
  [data-ui-style="1"] .desktop-clock {
    top: 14vh;
    right: 14vw;
  }

  [data-ui-style="1"] .desktop-workspace {
    top: 34%;
  }

  [data-ui-style="1"] .music-widget {
    top: 11vh;
    left: 5vw;
  }
}

@media (max-width: 720px) {
  [data-ui-style="1"] .desktop-clock {
    top: 12vh;
    right: 8vw;
  }

  [data-ui-style="1"] .clock-time {
    font-size: calc(64px * var(--clock-scale, 1));
  }

  [data-ui-style="1"] .music-widget {
    top: 8vh;
    left: 5vw;
  }
}

/* ==========================================================================
   STYLE NO. 2 — CINEMATIC DARK DESKTOP
   Large vertical clock (right-center), narrow right-edge dock,
   bottom-left system + music widget cluster, minimal centered taskbar
   ========================================================================== */

/* Application dock: narrow vertical column near the right edge */
[data-ui-style="2"] .desktop-workspace {
  top: 21%;
  left: auto;
  right: 7vw;
  bottom: auto;
  width: auto;
  height: auto;
  max-height: 58vh;
  overflow: hidden;
  padding: 0;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
}

[data-ui-style="2"] .desktop-icon {
  width: 30px;
  min-height: 30px;
  padding: 3px;
  border-radius: 6px;
  border: 1px solid transparent;
}

[data-ui-style="2"] .desktop-icon:hover {
  background-color: var(--hover-surface);
  border-color: transparent;
  transform: none;
}

[data-ui-style="2"] .desktop-icon.selected {
  background-color: rgba(100, 125, 184, 0.18);
  border-color: rgba(100, 125, 184, 0.35);
}

[data-ui-style="2"] .desktop-icon-img {
  width: 20px;
  height: 20px;
  margin-bottom: 0;
  color: #E7EAF3;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
  transition: opacity var(--transition-fast);
}

[data-ui-style="2"] .desktop-icon-img svg {
  width: 20px;
  height: 20px;
}

[data-ui-style="2"] .desktop-icon:hover .desktop-icon-img {
  transform: none;
  opacity: 0.7;
}

[data-ui-style="2"] .desktop-icon-label {
  display: none;
}

/* Floating widget layer */
[data-ui-style="2"] .desktop-widget {
  display: flex;
  pointer-events: auto;
}

/* Large vertical clock composition — right-center */
[data-ui-style="2"] .desktop-clock {
  position: absolute;
  right: 17vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 14px;
  color: #F5F6FA;
}

[data-ui-style="2"] .clock-date {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  order: 1;
}

[data-ui-style="2"] .clock-month {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-top: 8px;
  font-family: 'Oswald', var(--font-sans);
  font-size: calc(clamp(11px, 0.85vw, 15px) * var(--clock-scale, 1));
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clock-color, rgba(245, 246, 250, 0.8));
}

[data-ui-style="2"] .clock-day {
  font-family: 'Bebas Neue', 'Oswald', var(--font-sans);
  font-size: calc(clamp(90px, 6.8vw, 130px) * var(--clock-scale, 1));
  line-height: 0.82;
  letter-spacing: 2px;
  color: var(--clock-color, #F5F6FA);
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-ui-style="2"] .clock-time {
  order: 2;
  font-family: 'Oswald', var(--font-sans);
  font-size: calc(clamp(16px, 1.25vw, 22px) * var(--clock-scale, 1));
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--clock-color, #F5F6FA);
}

/* Thin muted-blue decorative accents near the lower numeral */
[data-ui-style="2"] .desktop-clock::before,
[data-ui-style="2"] .desktop-clock::after {
  content: '';
  position: absolute;
  right: 0;
  height: 1px;
  pointer-events: none;
}

[data-ui-style="2"] .desktop-clock::before {
  bottom: 8px;
  width: 62%;
  background: rgba(100, 125, 184, 0.55);
}

[data-ui-style="2"] .desktop-clock::after {
  bottom: 2px;
  width: 40%;
  background: rgba(100, 125, 184, 0.28);
}

/* Music player relocated into the bottom-left cluster */
[data-ui-style="2"] .music-widget {
  position: absolute;
  left: 6vw;
  bottom: 7vh;
  top: auto;
  width: clamp(210px, 16vw, 260px);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(18, 21, 33, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  color: #F5F6FA;
}

[data-ui-style="2"] .music-art {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #F5F6FA;
}

[data-ui-style="2"] .music-art svg {
  width: 17px;
  height: 17px;
}

[data-ui-style="2"] .music-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-ui-style="2"] .music-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

[data-ui-style="2"] .music-title {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #F5F6FA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-ui-style="2"] .music-artist {
  font-size: 10px;
  line-height: 1.3;
  color: rgba(184, 188, 200, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-ui-style="2"] .music-progress {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

[data-ui-style="2"] .music-progress-bar {
  width: 0%;
  height: 100%;
  background: #647DB8;
  transition: width 0.15s linear;
}

[data-ui-style="2"] .music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-ui-style="2"] .music-controls button {
  width: 16px;
  height: 16px;
  padding: 0;
  color: #F5F6FA;
  opacity: 0.7;
}

[data-ui-style="2"] .music-controls button:hover {
  opacity: 1;
  transform: none;
}

[data-ui-style="2"] .music-controls svg {
  width: 13px;
  height: 13px;
}

[data-ui-style="2"] .music-controls #music-open {
  margin-left: auto;
  opacity: 0.5;
}

/* Responsive tuning for Style No. 2 */
@media (max-width: 1200px) {
  [data-ui-style="2"] .desktop-clock {
    right: 15vw;
  }

  [data-ui-style="2"] .desktop-workspace {
    right: 5vw;
  }
}

@media (max-width: 900px) {
  [data-ui-style="2"] .desktop-clock {
    right: 12vw;
    top: 46%;
  }

  [data-ui-style="2"] .clock-day {
    font-size: clamp(64px, 9vw, 110px);
  }

  [data-ui-style="2"] .music-widget {
    left: 4vw;
    bottom: 6vh;
  }
}

@media (max-width: 640px) {
  [data-ui-style="2"] .desktop-clock {
    right: 8vw;
    top: 42%;
  }

  [data-ui-style="2"] .music-widget {
    left: 4vw;
    width: 70vw;
  }
}

/* ==========================================================================
   STYLE NO. 3 — ULTRA-MINIMAL MONOCHROME DESKTOP
   Top-center date/time header stack, clear desktop surface, snow overlay
   ========================================================================== */

/* Clean screen surface: no desktop icons or files */
[data-ui-style="3"] .desktop-workspace {
  display: none;
}

/* Ambient falling snow overlay */
.snow-layer {
  display: none;
}

[data-ui-style="3"] .snow-layer {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* The header stack belongs to Style 3 only.
   Styles 1 & 2 enable all widgets with `display: flex`, which leaked this
   unpositioned copy into the top-left corner — hide it here. */
[data-ui-style="1"] .desktop-header,
[data-ui-style="2"] .desktop-header {
  display: none;
}

/* Desktop header stack — top center */
[data-ui-style="3"] .desktop-header {
  position: absolute;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #FFFFFF;
  pointer-events: none;
}

[data-ui-style="3"] .header-day {
  font-family: 'Orbitron', var(--font-sans);
  font-size: calc(clamp(24px, 2.6vw, 40px) * var(--clock-scale, 1));
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--clock-color, #FFFFFF);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

[data-ui-style="3"] .header-date {
  margin-top: 6px;
  font-family: 'Montserrat', 'Inter', var(--font-sans);
  font-size: calc(clamp(12px, 1vw, 15px) * var(--clock-scale, 1));
  font-weight: 500;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  color: var(--clock-color, #E0E0E0);
}

[data-ui-style="3"] .header-clock {
  margin-top: 4px;
  font-family: 'Montserrat', 'Inter', var(--font-sans);
  font-size: calc(clamp(16px, 1.5vw, 22px) * var(--clock-scale, 1));
  font-weight: 400;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  color: var(--clock-color, #FFFFFF);
}

/* Style 3 uses the header stack instead of the floating clock, while the
   audio widget remains available in the lower-left corner. */
[data-ui-style="3"] .desktop-clock {
  display: none;
}

[data-ui-style="3"] .music-widget {
  display: flex;
  position: absolute;
  left: 6vw;
  bottom: 7vh;
  width: clamp(210px, 16vw, 260px);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(18, 21, 33, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  color: #F5F6FA;
  pointer-events: auto;
}

[data-ui-style="3"] .music-art {
  flex: none;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #F5F6FA;
}

[data-ui-style="3"] .music-art svg {
  width: 17px;
  height: 17px;
}

[data-ui-style="3"] .music-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-ui-style="3"] .music-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

[data-ui-style="3"] .music-title {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #F5F6FA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-ui-style="3"] .music-artist {
  font-size: 10px;
  line-height: 1.3;
  color: rgba(184, 188, 200, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-ui-style="3"] .music-progress {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

[data-ui-style="3"] .music-progress-bar {
  width: 0%;
  height: 100%;
  background: #FFFFFF;
  transition: width 0.15s linear;
}

[data-ui-style="3"] .music-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-ui-style="3"] .music-controls button {
  width: 16px;
  height: 16px;
  padding: 0;
  color: #F5F6FA;
  opacity: 0.7;
}

[data-ui-style="3"] .music-controls button:hover {
  opacity: 1;
  transform: none;
}

[data-ui-style="3"] .music-controls svg {
  width: 13px;
  height: 13px;
}

[data-ui-style="3"] .music-controls #music-open {
  margin-left: auto;
  opacity: 0.5;
}

@media (max-width: 900px) {
  [data-ui-style="3"] .desktop-header {
    top: 8vh;
  }
}

@media (max-width: 640px) {
  [data-ui-style="3"] .desktop-header {
    top: 7vh;
  }

  [data-ui-style="3"] .header-day {
    font-size: calc(22px * var(--clock-scale, 1));
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }
}

/* ==========================================================================
   DESKTOP CLOCK CUSTOMIZATION (Settings → Appearance)
   Driven by --clock-scale, --clock-color, --clock-font on :root plus the
   [data-clock-style] attribute set from the clock style picker.
   ========================================================================== */

/* Per-style base stroke/fill reference used by the outline variant */
[data-ui-style="1"] { --clock-stroke: #0f1115; }
[data-ui-style="2"] { --clock-stroke: #F5F6FA; }
[data-ui-style="3"] { --clock-stroke: #FFFFFF; }

/* Custom font override for every clock/date numeral */
[data-clock-font] .clock-time,
[data-clock-font] .clock-day,
[data-clock-font] .clock-month,
[data-clock-font] .header-day,
[data-clock-font] .header-date,
[data-clock-font] .header-clock {
  font-family: var(--clock-font) !important;
}

/* Outline — hollow numerals */
[data-clock-style="outline"] .clock-time,
[data-clock-style="outline"] .clock-day,
[data-clock-style="outline"] .header-day,
[data-clock-style="outline"] .header-clock {
  color: transparent !important;
  -webkit-text-stroke: 2px var(--clock-color, var(--clock-stroke));
  text-shadow: none;
}

[data-clock-style="outline"] .clock-month,
[data-clock-style="outline"] .header-date {
  opacity: 0.7;
}

/* Glass — frosted card behind the time */
[data-clock-style="glass"] .clock-time,
[data-clock-style="glass"] .header-clock {
  padding: 0.06em 0.22em;
  border-radius: 0.08em;
  background: rgba(127, 127, 127, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Minimal — light sans time, month only, no big day numeral */
[data-clock-style="minimal"] .clock-time,
[data-clock-style="minimal"] .header-clock {
  font-family: var(--font-sans) !important;
  font-weight: 300;
  letter-spacing: 0.06em;
}

[data-clock-style="minimal"] .clock-day {
  display: none;
}

[data-clock-style="minimal"] .clock-month {
  letter-spacing: 0.32em;
  opacity: 0.65;
}

/* Rubberband Marquee Selection Box */
.selection-box {
  position: absolute;
  background-color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius-xs);
  pointer-events: none;
  z-index: 99;
}

/* ==========================================================================
   CLOCK DRAG-TO-POSITION MODE
   The settings app opens this layer above the window stack so the clock can
   be dragged even when Settings (or another window) overlaps the desktop.
   ========================================================================== */
.clock-position-layer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.clock-position-layer.show { opacity: 1; }

.clock-position-clone {
  position: fixed;
  margin: 0;
  pointer-events: auto !important;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border-radius: 12px;
  outline: 2px dashed var(--accent);
  outline-offset: 14px;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.32));
}

.clock-position-clone.is-dragging {
  cursor: grabbing;
  outline-style: solid;
}

.clock-position-source-hidden { visibility: hidden !important; }

.clock-position-hint {
  position: fixed;
  left: 50%;
  bottom: 74px;
  z-index: 100002;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: var(--glass-border);
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-window);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, 14px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.clock-position-hint.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.clock-position-hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}

.clock-position-hint-icon svg {
  width: 16px;
  height: 16px;
}

.clock-position-hint-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.clock-position-hint-copy strong {
  font-size: 12.5px;
  font-weight: 600;
}

.clock-position-hint-copy span {
  font-size: 11px;
  color: var(--text-muted);
}

.clock-position-hint kbd {
  padding: 3px 6px;
  border: var(--glass-border-subtle);
  border-radius: 5px;
  background: rgba(127, 127, 127, 0.12);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
}

@media (max-width: 560px) {
  .clock-position-hint {
    bottom: 84px;
    width: calc(100vw - 32px);
    justify-content: flex-start;
    white-space: normal;
  }
}
