:root {
  color-scheme: dark;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top, #1b2735 0%, #090a0f 65%, #040507 100%);
  color: #f3f6fb;
}

body {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.hidden {
  display: none !important;
}

.cover {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, rgba(19, 42, 92, 0.9) 0%, rgba(12, 24, 54, 0.95) 50%, rgba(4, 8, 18, 0.95) 100%);
  backdrop-filter: blur(12px);
  z-index: 10;
  transition: transform 0.8s ease, opacity 0.3s ease;
  will-change: transform;
}

.cover--hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.cover__content {
  display: grid;
  gap: 0.8rem;
  padding: 3.5rem 4.25rem;
  border-radius: 24px;
  background: rgba(8, 14, 29, 0.65);
  box-shadow: 0 24px 60px rgba(8, 16, 39, 0.45);
}

.cover__time {
  font-size: clamp(3rem, 8vw, 5.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.cover__date {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  opacity: 0.85;
}

.cover__hint {
  margin-top: 0.8rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.login-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}

.login-panel {
  width: min(360px, 100%);
  padding: 2.8rem 3rem;
  border-radius: 18px;
  background: rgba(11, 16, 31, 0.8);
  box-shadow: 0 24px 48px rgba(6, 10, 22, 0.45);
  display: grid;
  gap: 1.2rem;
}

.login-panel__title {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

.login-panel__label {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.login-panel__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(102, 123, 182, 0.4);
  background: rgba(7, 12, 27, 0.6);
  color: inherit;
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.login-panel__input:focus {
  outline: none;
  border-color: rgba(94, 140, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(94, 140, 255, 0.25);
}

.login-panel__button {
  margin-top: 0.5rem;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #4a6ff2 0%, #6a8dff 50%, #89a8ff 100%);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-panel__button:hover,
.login-panel__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(74, 111, 242, 0.35);
}

.login-panel__error {
  min-height: 1.25rem;
  margin: 0;
  color: #ff6b8a;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.desktop {
  position: relative;
  flex: 1;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #1e2a3f 0%, #131a2d 60%, #070b16 100%);
}

.desktop__background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(82, 110, 255, 0.3), transparent 55%),
    radial-gradient(circle at 80% 30%, rgba(255, 185, 105, 0.25), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(104, 221, 255, 0.25), transparent 60%),
    linear-gradient(180deg, #182139 0%, #0f1628 60%, #080b16 100%);
  filter: saturate(1.05);
  pointer-events: none;
  z-index: 0;
}

.desktop__workspace {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 1.5rem;
  padding: 2.75rem 2.5rem 7rem;
}

.desktop-icon {
  width: 110px;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  align-content: flex-start;
  padding: 0.55rem 0.35rem;
  background: none;
  border: none;
  border-radius: 14px;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 20px rgba(9, 14, 33, 0.35);
  transform: translateY(-3px);
}

.desktop-icon__logo {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(9, 14, 33, 0.4);
}

.desktop-icon__label {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 6px rgba(8, 10, 24, 0.55);
}

.start-menu {
  position: absolute;
  left: 1.5rem;
  bottom: 70px;
  width: 280px;
  padding: 1.5rem;
  display: grid;
  gap: 1.2rem;
  background: rgba(20, 24, 38, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(5, 8, 16, 0.55);
  z-index: 4;
}

.start-menu__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.start-menu__avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #4a6ff2, #89a8ff);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.start-menu__details {
  display: grid;
  gap: 0.25rem;
}

.start-menu__name {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.start-menu__status {
  font-size: 0.85rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

.start-menu__grid {
  display: grid;
  gap: 0.75rem;
}

.start-menu__item {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 21, 36, 0.75);
  color: inherit;
  font: inherit;
  text-align: left;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.start-menu__item:hover,
.start-menu__item:focus-visible {
  outline: none;
  border-color: rgba(120, 160, 255, 0.6);
  background: rgba(42, 57, 102, 0.85);
  transform: translateX(4px);
}

.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: rgba(20, 24, 36, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #d5d9e6;
  z-index: 5;
}

.taskbar__section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.taskbar__start-button {
  padding: 0.4rem 0.6rem;
  border-radius: 14px;
  border: none;
  background: none;
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.taskbar__start-button:hover,
.taskbar__start-button:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 16px rgba(6, 10, 20, 0.3);
}

.taskbar__start-button--active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.taskbar__start-icon {
  width: 36px;
  height: 36px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 10px 20px rgba(6, 10, 20, 0.38);
}

.taskbar__label {
  font-size: 0.95rem;
  opacity: 0.85;
}

.taskbar__datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.taskbar__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.taskbar__date {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100% - 3.5rem));
  min-width: 280px;
  min-height: 220px;
  background: rgba(16, 22, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(5, 10, 24, 0.55);
  overflow: hidden;
  z-index: 3;
}

.window__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(38, 48, 76, 0.95), rgba(22, 30, 52, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: grab;
  user-select: none;
}

.window--dragging .window__titlebar {
  cursor: grabbing;
}

.window__title {
  font-weight: 600;
  letter-spacing: 0.08em;
}

.window__controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.window__control {
  padding: 0.35rem 0.75rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(38, 48, 76, 0.75);
  color: #f1f4ff;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.window__control:hover,
.window__control:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(8, 10, 22, 0.35);
}

.window__control--fullscreen {
  background: rgba(92, 138, 255, 0.3);
  border-color: rgba(130, 170, 255, 0.4);
}

.window__control--fullscreen:hover,
.window__control--fullscreen:focus-visible {
  background: rgba(112, 156, 255, 0.45);
}

.window__control--close {
  background: rgba(160, 50, 70, 0.85);
  border-color: rgba(255, 128, 150, 0.4);
}

.window__control--close:hover,
.window__control--close:focus-visible {
  background: rgba(200, 60, 90, 0.95);
}

.window__body {
  padding: 1rem 1.15rem 1.4rem;
  display: grid;
  gap: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.window__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.window__list li {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(30, 38, 60, 0.75);
  letter-spacing: 0.04em;
}

.window__textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(112, 140, 210, 0.45);
  background: rgba(12, 18, 32, 0.85);
  color: inherit;
  font: inherit;
  resize: vertical;
  min-height: 120px;
}

.window__textarea:focus {
  outline: none;
  border-color: rgba(120, 160, 255, 0.75);
  box-shadow: 0 0 0 2px rgba(120, 160, 255, 0.3);
}

.window__input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 30, 0.85);
  color: inherit;
  font: inherit;
}

.window__primary {
  justify-self: start;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  border: none;
  background: rgba(80, 120, 255, 0.75);
  color: rgba(230, 236, 255, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.window__toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: rgba(22, 30, 50, 0.8);
}

.window__toggle input {
  width: 18px;
  height: 18px;
}

.window__resizer {
  position: absolute;
  width: 18px;
  height: 18px;
  right: 8px;
  bottom: 8px;
  border-radius: 6px;
  border: 1px solid rgba(140, 170, 255, 0.35);
  background: linear-gradient(135deg, rgba(120, 160, 255, 0.45), rgba(80, 110, 220, 0.35));
  box-shadow: 0 8px 16px rgba(6, 10, 20, 0.35);
  cursor: se-resize;
}

.window__resizer::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(16, 22, 38, 0.6);
  border-bottom: 2px solid rgba(16, 22, 38, 0.6);
  opacity: 0.7;
}

.window--fullscreen .window__titlebar {
  cursor: default;
}

.window--fullscreen .window__resizer {
  display: none;
}

.window--fullscreen {
  border-color: rgba(130, 170, 255, 0.32);
  box-shadow: 0 22px 48px rgba(10, 18, 44, 0.55);
}

.window__body--portal {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-bottom: 0.75rem;
  flex: 1;
  min-height: 0;
}

.window__body--lume {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 0.75rem;
  min-height: 0;
}

.lume-caption {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.lume-cse {
  flex: 1;
  min-height: 0;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 18, 30, 0.6);
  overflow: auto;
}

.lume-cse .gsc-control-cse {
  background: transparent;
  border: none;
}

.lume-cse .gsc-input-box,
.lume-cse .gsc-input-box-hover,
.lume-cse .gsc-input {
  background: rgba(12, 18, 32, 0.85) !important;
  border: 1px solid rgba(130, 160, 230, 0.4) !important;
  border-radius: 12px !important;
  color: inherit;
}

.lume-cse .gsc-search-button-v2,
.lume-cse .gsc-search-button-v2:focus,
.lume-cse .gsc-search-button-v2:hover {
  background: linear-gradient(135deg, #4a6ff2, #89a8ff) !important;
  border-radius: 12px !important;
  border: none !important;
}

.lume-cse .gsc-result,
.lume-cse .gsc-webResult.gsc-result {
  background: rgba(26, 38, 62, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.lume-cse .gsc-result:hover {
  border-color: rgba(120, 160, 255, 0.35);
}

.lume-cse .gsc-result .gs-title,
.lume-cse .gsc-result .gs-title * {
  color: #dfe7ff !important;
}

.lume-cse .gsc-result .gs-snippet {
  color: rgba(223, 231, 255, 0.85);
}

.lume-cse .gsc-result .gs-visibleUrl,
.lume-cse .gsc-result .gs-visibleUrl-short {
  color: #8fc2ff;
}

.lume-cse .gcsc-find-more-on-google {
  display: none;
}

.portal-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.portal-form__input {
  flex: 1;
}

.portal-form__button {
  flex-shrink: 0;
}

.portal-status {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.portal-status--loading {
  opacity: 1;
}

.portal-status--error {
  color: #ff6b8a;
  opacity: 1;
}

.portal-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.portal-external {
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(120, 160, 255, 0.35);
  background: rgba(94, 140, 255, 0.2);
  color: #dce6ff;
  font: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-external:hover,
.portal-external:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: rgba(120, 170, 255, 0.35);
  box-shadow: 0 10px 18px rgba(8, 18, 44, 0.35);
}

.portal-frame {
  width: 100%;
  flex: 1;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(12, 18, 30, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .cover__content {
    padding: 2.5rem 2rem;
  }

  .login-panel {
    padding: 2rem;
  }

  .desktop__workspace {
    padding: 1.8rem 1.5rem 7rem;
    gap: 1rem;
  }

  .desktop-icon {
    width: 90px;
  }

  .desktop-icon__logo {
    width: 60px;
    height: 60px;
  }

  .start-menu {
    width: calc(100% - 3rem);
    left: 1.5rem;
  }

  .window {
    left: 1.5rem !important;
    right: 1.5rem;
    width: auto;
  }

  .portal-form {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-form__button {
    width: 100%;
  }

  .portal-status-row {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-external {
    width: 100%;
    text-align: center;
  }

  .portal-frame {
    min-height: 240px;
  }

  .window {
    min-width: auto;
  }

  .window__resizer {
    right: 6px;
    bottom: 6px;
  }
}




