:root {
  color-scheme: dark;
  --bg: #0f1720;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --ink: #16202c;
  --muted: #5f6f82;
  --line: rgba(18, 32, 49, 0.16);
  --blue: #1769e0;
  --blue-dark: #0b55bd;
  --green: #14895a;
  --red: #c73737;
  --amber: #b76d10;
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(24, 105, 224, 0.35), transparent 38%),
    linear-gradient(315deg, rgba(20, 137, 90, 0.28), transparent 44%),
    url("https://images.unsplash.com/photo-1538582705984-8f0e79a3960e?auto=format&fit=crop&w=1800&q=80") center/cover fixed,
    var(--bg);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

button:hover {
  background: white;
}

.desktop {
  position: relative;
  min-height: 100vh;
  padding: 22px 24px 74px;
}

.desktop-icons {
  position: absolute;
  top: 24px;
  left: 18px;
  display: grid;
  gap: 18px;
  width: 88px;
}

.desktop-icon {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px;
  color: white;
  background: transparent;
  border: 1px solid transparent;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.desktop-icon.active,
.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(145deg, #f4f8ff, #b9d2f8);
  color: #143d70;
  font-size: 24px;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.window {
  width: min(1180px, calc(100vw - 136px));
  height: min(760px, calc(100vh - 106px));
  margin-left: 106px;
  border-radius: 8px;
  background: var(--glass);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  color: var(--ink);
}

.window-titlebar {
  height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--line);
}

.window-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.window-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.app-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue);
  color: white !important;
  font-weight: 800;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7a8794;
}

.window-controls span:nth-child(2) {
  background: #d0a51c;
}

.window-controls span:nth-child(3) {
  background: #c94141;
}

.window-body {
  height: calc(100% - 58px);
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  padding: 16px;
  overflow: auto;
}

.sidebar-header,
.section-heading,
.top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sidebar-header {
  margin-bottom: 14px;
  color: var(--muted);
}

.vessel-list {
  display: grid;
  gap: 10px;
}

.vessel-item {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.64);
}

.vessel-item.active {
  border-color: rgba(23, 105, 224, 0.55);
  box-shadow: inset 3px 0 0 var(--blue);
}

.vessel-item strong,
.vessel-item span {
  display: block;
}

.vessel-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.workspace {
  padding: 18px;
  overflow: auto;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.eyebrow {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 26px;
  margin-top: 2px;
}

h2 {
  font-size: 17px;
}

.status-card {
  min-width: 180px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 8px;
}

.status-card span,
.status-card strong {
  display: block;
}

.status-card span {
  color: var(--muted);
  font-size: 12px;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 16px;
  margin-top: 18px;
}

.content-picker,
.pc-panel,
.library-list,
.log-list,
.settings-grid {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  padding: 16px;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 10px;
}

textarea {
  resize: vertical;
}

.command-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.primary {
  background: var(--blue);
  color: white;
}

.primary:hover {
  background: var(--blue-dark);
}

.danger {
  color: white;
  background: var(--red);
}

.danger:hover {
  background: #a72424;
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pc-card {
  position: relative;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 13px;
  cursor: pointer;
}

.pc-card.selected {
  border-color: rgba(23, 105, 224, 0.8);
  box-shadow: inset 0 0 0 2px rgba(23, 105, 224, 0.22);
}

.pc-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.pc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
  background: rgba(95, 111, 130, 0.14);
  color: var(--muted);
}

.badge.online {
  background: rgba(20, 137, 90, 0.14);
  color: var(--green);
}

.badge.locked {
  background: rgba(183, 109, 16, 0.15);
  color: var(--amber);
}

.badge.presenting {
  background: rgba(23, 105, 224, 0.14);
  color: var(--blue-dark);
}

.library-list,
.log-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.library-item,
.log-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.library-item span,
.log-item span,
.settings-grid span {
  color: var(--muted);
  font-size: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  margin-top: 14px;
}

code {
  align-self: center;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(22, 32, 44, 0.08);
  color: #203247;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(236, 243, 252, 0.86);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.start-button {
  background: var(--blue);
  color: white;
  font-weight: 800;
}

.task {
  min-width: 96px;
}

.task.active {
  background: white;
  box-shadow: inset 0 -3px 0 var(--blue);
}

.clock {
  margin-left: auto;
  color: var(--ink);
  font-weight: 700;
  min-width: 74px;
  text-align: center;
}

@media (max-width: 880px) {
  body {
    overflow: auto;
  }

  .desktop {
    padding: 12px 12px 72px;
  }

  .desktop-icons {
    display: none;
  }

  .window {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 92px);
    margin-left: 0;
  }

  .window-body,
  .control-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .vessel-list,
  .pc-grid {
    grid-template-columns: 1fr;
  }

  .top-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .task {
    min-width: auto;
    padding-inline: 10px;
  }
}
