/* Floating Top Command Island */
#topIsland {
  position: fixed; top: 0; left: 0; right: 0; height: 2.85rem; z-index: 500;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.drag-strip {
  position: absolute; top: 0; left: 0; right: 0; height: 2.4rem; -webkit-app-region: drag; pointer-events: auto;
}
.island-pill {
  position: relative; z-index: 2; pointer-events: auto; -webkit-app-region: no-drag;
  display: flex; align-items: center; gap: 0.45rem; height: 2.35rem; padding: 0 0.55rem 0 0.75rem;
  background: var(--glass-hi); backdrop-filter: blur(28px) saturate(160%); -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--rim); border-radius: var(--r-pill); box-shadow: var(--sh);
  max-width: calc(100vw - 11rem);
}
.isl-brand {
  display: inline-flex; align-items: center; gap: 0.45rem; background: none; border: 0;
  font-weight: 800; font-size: 0.85rem; letter-spacing: -0.2px; padding: 0.2rem 0.35rem; border-radius: var(--r-pill);
}
.orb {
  width: 0.62rem; height: 0.62rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--ok));
  box-shadow: 0 0 10px var(--brand);
}
.isl-sep { width: 1px; height: 1.05rem; background: var(--line); }
.isl-omni {
  display: inline-flex; align-items: center; gap: 0.48rem; height: 1.75rem; padding: 0 0.75rem;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface2);
  font-size: 0.82rem; color: var(--sub); min-width: 11rem; max-width: 19rem; transition: all .2s var(--ease);
}
.isl-omni:hover { border-color: var(--rim); color: var(--txt); }
.isl-omni span { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isl-omni kbd { font-size: 0.7rem; padding: 0.08rem 0.36rem; border-radius: 0.35rem; background: var(--line); color: var(--txt); }
.isl-tools { display: flex; align-items: center; gap: 0.2rem; }
.isl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.2rem;
  height: 1.8rem; min-width: 1.8rem; padding: 0 0.4rem; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--sub); font-size: 0.78rem; font-weight: 700; transition: all .18s var(--ease);
}
.isl-btn:hover { background: var(--surface2); color: var(--txt); }
.sound-ind { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--sub); opacity: 0.35; }
.sound-ind.on { background: var(--ok); opacity: 1; box-shadow: 0 0 8px var(--ok); }
.isl-clock { font-size: 0.82rem; font-weight: 700; padding: 0 0.45rem; color: var(--txt); }

/* Left Spatial Rail */
#rail {
  position: fixed; left: 0.7rem; top: 3.35rem; bottom: 0.85rem; width: var(--rail-w); z-index: 450;
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem; padding: 0.65rem 0.45rem;
  background: var(--glass); backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid var(--rim); border-radius: 1.45rem; box-shadow: var(--sh);
  transition: transform .28s var(--ease), opacity .24s var(--ease);
}
body.is-zen #rail { transform: translateX(-130%); opacity: 0; pointer-events: none; }
.rail-top { width: 100%; }
.rail-new {
  width: 100%; padding: 0.52rem 0.2rem; border-radius: 0.9rem; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 0.12rem;
  font-size: 0.7rem; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,0.25); transition: transform .18s var(--ease);
}
.rail-new:hover { transform: scale(1.04); }
.rail-spaces { width: 100%; display: flex; flex-direction: column; gap: 0.25rem; }
.sp-btn {
  width: 100%; padding: 0.38rem 0.2rem; border-radius: 0.72rem; border: 1px solid transparent;
  background: transparent; color: var(--sub); font-size: 0.72rem; font-weight: 700;
  transition: all .18s var(--ease);
}
.sp-btn:hover { background: var(--surface2); color: var(--txt); }
.sp-btn.on { background: var(--surface2); border-color: var(--rim); color: var(--txt); }
.rail-divider { width: 100%; text-align: center; font-size: 0.64rem; color: var(--sub); opacity: 0.7; padding-top: 0.15rem; }
.rail-dock {
  flex: 1; width: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 0.48rem;
  scrollbar-width: none; padding: 0.15rem 0;
}
.rail-dock::-webkit-scrollbar { display: none; }
.dock-item {
  position: relative; background: transparent; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; transition: transform .2s var(--ease);
}
.dock-item:hover { transform: scale(1.1); }
.dock-ico {
  width: 2.6rem; height: 2.6rem; border-radius: 0.85rem; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.3);
}
.dock-dot {
  position: absolute; left: -0.35rem; width: 0.22rem; height: 0.22rem; border-radius: 4px;
  background: transparent; transition: all .2s var(--ease);
}
.dock-item.is-open .dock-dot { height: 0.55rem; background: var(--sub); }
.dock-item.is-min .dock-ico { opacity: 0.52; filter: grayscale(0.25); }
.dock-item.is-min .dock-dot { height: 0.4rem; background: var(--warn); }
.dock-item.is-act .dock-dot { height: 1.2rem; background: var(--brand2); box-shadow: 0 0 8px var(--brand2); }
.rail-foot {
  width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.28rem;
  padding-top: 0.45rem; border-top: 1px solid var(--line);
}
.rail-mini {
  height: 1.95rem; border-radius: 0.6rem; border: 1px solid transparent;
  background: var(--surface2); color: var(--sub); display: flex; align-items: center; justify-content: center;
}
.rail-mini:hover { color: var(--txt); border-color: var(--rim); }

/* Centered Editorial Spatial Stage */
#desktop {
  position: fixed; inset: 0; z-index: 1;
  padding: 3.9rem 1.8rem 1.5rem calc(var(--rail-w) + 2.2rem);
  overflow-y: auto; transition: padding-left .28s var(--ease);
}
body.is-zen #desktop { padding-left: 1.8rem; }
.stage {
  max-width: 960px; margin: 1.2rem auto 0; display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.stage-hero { text-align: center; width: 100%; }
.stage-date { font-size: 0.9rem; color: var(--sub); font-weight: 600; letter-spacing: 0.5px; }
.stage-clock {
  font-size: 4.4rem; font-weight: 200; letter-spacing: -2.5px; line-height: 1.05; margin: 0.2rem 0 0.5rem;
}
.stage-motto {
  width: min(520px, 100%); text-align: center; border: 0; border-bottom: 1px dashed var(--line);
  background: transparent; padding: 0.35rem 0.5rem; font-size: 0.96rem; color: var(--sub);
}
.stage-motto:focus { outline: none; border-bottom-color: var(--brand); color: var(--txt); }

.hero-omni-form {
  width: min(640px, 100%); display: flex; align-items: center; gap: 0.65rem;
  padding: 0.5rem 0.6rem 0.5rem 1.15rem; border-radius: var(--r-pill);
  background: var(--glass-hi); border: 1px solid var(--rim); box-shadow: var(--sh2);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
}
.hero-omni-form input {
  flex: 1; border: 0; background: transparent; font-size: 0.98rem; outline: none;
}
.hero-omni-form button {
  padding: 0.48rem 1.05rem; border-radius: var(--r-pill); border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; font-weight: 700; font-size: 0.84rem;
}
.hero-omni-form .btn-dual {
  background: var(--surface2); color: var(--txt); border: 1px solid var(--rim);
}
.hero-omni-form .btn-dual:hover { border-color: var(--brand); color: var(--brand2); }
.eng-bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.4rem; margin-top: -0.75rem;
}
.eng-pill {
  padding: 0.28rem 0.78rem; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--glass); color: var(--sub); font-size: 0.78rem; font-weight: 700; transition: all .18s var(--ease);
}
.eng-pill:hover { color: var(--txt); border-color: var(--rim); }
.eng-pill.on { background: var(--brand); color: #fff; border-color: transparent; }

.stage-grid {
  width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 0.85rem;
}
.s-card {
  display: flex; align-items: center; gap: 0.78rem; padding: 0.85rem 0.95rem;
  border-radius: 1.1rem; border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  text-align: left; box-shadow: var(--sh); transition: all .22s var(--ease);
}
.s-card:hover { transform: translateY(-4px); border-color: var(--rim); background: var(--glass-hi); box-shadow: var(--sh2); }
.s-ico {
  width: 2.5rem; height: 2.5rem; border-radius: 0.8rem; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.28);
}
.s-txt { min-width: 0; display: flex; flex-direction: column; gap: 0.08rem; }
.s-txt strong { font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-txt span { font-size: 0.76rem; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
