@import url('https://rosetech.me/assets/css/style.css');

:root {
  --msdb-shell-gap: 14px;
}

body {
  font-family: var(--rt-font-body);
}

.wrap {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 55;
  margin-top: 16px;
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-lg);
  background: var(--rt-surface-glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--rt-shadow2);
}

.topbar .brand,
.topbar .nav,
.row,
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.brand {
  color: var(--rt-text);
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--rt-border2);
  background:
    linear-gradient(135deg, var(--rt-logo-a), var(--rt-logo-b)),
    var(--rt-panel);
  box-shadow: var(--rt-shadow2);
}

.h1 {
  margin: 0;
  font-family: var(--rt-font-display);
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.h2 {
  margin: 0;
  font-family: var(--rt-font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.small,
.code,
.notice,
.section h3 + .small {
  color: var(--rt-text-faint);
  font-size: 0.84rem;
}

.nav {
  justify-content: flex-end;
}

.chip,
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rt-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--rt-text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.chip:hover,
.pill:hover {
  border-color: var(--rt-border2);
  color: var(--rt-text);
}

.theme-toggle {
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--rt-border2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--rt-text);
  font-weight: 800;
}

.btn.primary,
.btn.good {
  background: linear-gradient(135deg, var(--rt-primary-a), var(--rt-primary-b));
  border-color: var(--rt-interact-border);
}

.btn.bad {
  background: rgba(255, 140, 152, 0.12);
  border-color: rgba(255, 140, 152, 0.3);
}

.card,
.section,
.side.tree {
  border: 1px solid var(--rt-border);
  border-radius: var(--rt-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    linear-gradient(145deg, var(--rt-surface), var(--rt-surface-strong));
  box-shadow: var(--rt-shadow2);
}

.card,
.section {
  padding: 18px;
}

.grid {
  display: grid;
  gap: var(--msdb-shell-gap);
}

.grid.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.msdb-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: var(--msdb-shell-gap);
  align-items: start;
  margin-top: 16px;
}

.side.tree {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.section h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sub {
  display: grid;
  gap: 8px;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--rt-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--rt-text-soft);
}

.item:hover,
.item.active {
  border-color: var(--rt-interact-border);
  background: var(--rt-interact);
  color: var(--rt-text);
}

.pill {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.74rem;
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--rt-border);
  background: rgba(255, 255, 255, 0.05);
}

.notice.good {
  border-color: rgba(113, 215, 166, 0.34);
  background: rgba(113, 215, 166, 0.14);
  color: var(--rt-text);
}

.notice.bad {
  border-color: rgba(255, 140, 152, 0.34);
  background: rgba(255, 140, 152, 0.14);
  color: var(--rt-text);
}

hr {
  border: 0;
  border-top: 1px solid var(--rt-border);
  margin: 14px 0;
}

body[data-theme="light"] .topbar,
body[data-theme="light"] .card,
body[data-theme="light"] .section,
body[data-theme="light"] .side.tree {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72)),
    linear-gradient(145deg, var(--rt-surface), var(--rt-surface-strong));
}

body[data-theme="light"] .chip,
body[data-theme="light"] .pill,
body[data-theme="light"] .badge,
body[data-theme="light"] .btn,
body[data-theme="light"] .item,
body[data-theme="light"] .notice {
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .msdb-shell,
  .grid.grid2 {
    grid-template-columns: 1fr;
  }

  .side.tree {
    position: static;
    top: auto;
  }

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

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 18px);
  }

  .topbar,
  .card,
  .section {
    padding: 14px;
  }
}
