:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17202c;
  background: #07131f;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.desktop {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.v2-desktop {
  color: #17202c;
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 244, 211, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(5, 21, 36, 0.02), rgba(5, 21, 36, 0.08)),
    url("../public/v2/lockscreen-mountain-lake.png") center / cover no-repeat;
}

.v2-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.systembar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 34;
  height: 38px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(13, 27, 37, 0.36), rgba(13, 27, 37, 0.16)), rgba(180, 207, 222, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 34px rgba(4, 14, 25, 0.1);
  backdrop-filter: blur(16px) saturate(120%);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.42);
}

.systembar-left,
.systembar-center,
.topbar-status {
  display: flex;
  align-items: center;
}

.systembar-left {
  gap: 12px;
  min-width: 0;
}

.systembar-left strong {
  font-size: 14px;
  font-weight: 820;
}

.systembar-center {
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 650;
}

.topbar-status {
  justify-content: flex-end;
  gap: 8px;
}

.tray-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
}

.tray-button .v2-icon {
  width: 17px;
  height: 17px;
}

.tray-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.language-pill,
.weather-pill,
.status-pill {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 760;
}

.desktop-surface {
  position: absolute;
  inset: 38px 0 0;
  overflow: hidden;
}

.desktop-clock-widget {
  position: absolute;
  left: 50%;
  top: 54px;
  z-index: 3;
  min-width: 360px;
  display: grid;
  justify-items: center;
  gap: 5px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.94);
  text-align: center;
  text-shadow: 0 2px 14px rgba(6, 18, 30, 0.52);
  pointer-events: none;
}

.desktop-clock-widget strong {
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 520;
  line-height: 0.95;
}

.desktop-clock-widget span {
  font-size: 15px;
  font-weight: 520;
}

.desktop-clock-widget span:last-child {
  margin-top: 3px;
  padding: 4px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(112%);
}

.workspace-tab {
  position: absolute;
  z-index: 8;
  width: 34px;
  min-height: 124px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(17, 38, 51, 0.26), rgba(17, 38, 51, 0.18)), rgba(222, 238, 246, 0.16);
  box-shadow: 0 14px 38px rgba(4, 16, 28, 0.14);
  backdrop-filter: blur(14px) saturate(118%);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.46);
}

.workspace-tab span {
  writing-mode: vertical-rl;
  font-size: 13px;
  font-weight: 780;
}

.project-tab {
  left: 0;
  top: 42px;
  border-radius: 0 12px 12px 0;
}

.launcher {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 15;
  width: min(390px, calc(100vw - 40px));
  color: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%);
}

.access-launcher {
  display: grid;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17, 38, 51, 0.28), rgba(17, 38, 51, 0.18)), rgba(222, 238, 246, 0.18);
  box-shadow: 0 24px 70px rgba(3, 16, 28, 0.24);
  backdrop-filter: blur(24px) saturate(118%);
}

.public-panel-header {
  display: grid;
  justify-items: center;
}

.unlock-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.unlock-brand strong {
  font-size: 24px;
  font-weight: 820;
}

.access-form {
  position: relative;
  display: grid;
  gap: 12px;
}

.access-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.password-field {
  position: relative;
  display: grid;
}

.password-field[hidden],
.access-form input[hidden] {
  display: none;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.password-toggle::before {
  content: "";
  width: 18px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
}

.password-toggle::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.password-toggle.is-visible::before {
  border-color: #fff;
}

.password-toggle.is-visible::after {
  background: #fff;
}

.access-form input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.access-form input.is-available {
  border-color: rgba(134, 239, 172, 0.72);
}

.access-form input.is-unavailable {
  border-color: rgba(252, 165, 165, 0.86);
}

.access-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.access-actions button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.access-actions .primary {
  background: rgba(255, 255, 255, 0.34);
}

.access-actions button:disabled,
.access-form input:disabled {
  cursor: wait;
  opacity: 0.7;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 104px;
  z-index: 60;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 36px));
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 24, 36, 0.72);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
  font-size: 14px;
  font-weight: 720;
}

@media (max-width: 760px) {
  .systembar {
    grid-template-columns: 1fr auto;
  }

  .systembar-center {
    display: none;
  }

  .topbar-status {
    gap: 4px;
  }

  .launcher {
    left: 18px;
    right: 18px;
    top: 50%;
    bottom: auto;
    width: auto;
    transform: translateY(-50%);
  }

  .desktop-clock-widget {
    top: 52px;
    min-width: 0;
    width: calc(100vw - 48px);
  }

  .desktop-clock-widget strong {
    font-size: 56px;
  }

}
