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

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

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

.main {
  padding: 22px 0 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 55;
  border-bottom: 1px solid var(--rt-border);
  background: var(--rt-surface-glass);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rt-text);
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(244, 63, 94, 0.86));
  box-shadow: 0 0 0 5px rgba(168, 85, 247, 0.12);
}

.brand-text {
  font-family: var(--rt-font-display);
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.navlink,
.btn,
.pill,
.tab,
.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--rt-border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--rt-text-soft);
  font-weight: 800;
  transition:
    transform var(--rt-transition-fast),
    border-color var(--rt-transition-fast),
    background var(--rt-transition-fast),
    color var(--rt-transition-fast),
    box-shadow var(--rt-transition-fast);
}

.navlink:hover,
.navlink.active,
.btn:hover,
.pill:hover,
.tab.is-active,
.gs-btn:hover {
  border-color: rgba(168, 85, 247, 0.34);
  background: rgba(168, 85, 247, 0.1);
  color: var(--rt-text);
  transform: translateY(-1px);
  box-shadow: var(--rt-shadow2);
}

.btn.primary,
.btn.cyan,
.btn.red,
.gs-btn-primary {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(244, 63, 94, 0.16));
  border-color: rgba(168, 85, 247, 0.32);
  color: var(--rt-text);
}

.btn.ghost {
  background: transparent;
}

.theme-toggle {
  min-width: 84px;
}

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

.me-avatar,
.avatar,
.gs-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--rt-border2);
  background-size: cover;
  background-position: center;
  object-fit: cover;
}

.gs-avatar-fallback {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(244, 63, 94, 0.24));
}

.me-name,
.name,
.gs-profile-name {
  color: var(--rt-text);
  font-weight: 800;
  line-height: 1.1;
}

.me-sub,
.rank,
.muted,
.hint,
.meta,
.gs-muted,
.gs-li-meta {
  color: var(--rt-text-faint);
}

.card,
.aside-card,
.tile,
.note,
.preview,
.gs-box,
.gs-hero,
.gs-profile,
.gs-list-item {
  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.015)),
    linear-gradient(145deg, var(--rt-surface), var(--rt-surface-strong));
  box-shadow: var(--rt-shadow2);
}

.card-header,
.pad,
.gs-hero-inner,
.gs-profile,
.gs-box,
.tile,
.aside-card,
.note {
  padding: 16px 18px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rt-border-subtle);
}

.card,
.preview {
  overflow: hidden;
}

.h1 {
  margin: 0;
  font-family: var(--rt-font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.field,
.gs-form,
.gs-grid,
.grid,
.form-grid,
.two,
.gs-split,
.gs-profile,
.gs-tags,
.chips,
.toolbar,
.tabs,
.gs-actions,
.gs-list {
  display: grid;
  gap: 12px;
}

.grid,
.form-grid,
.two,
.gs-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full {
  grid-column: 1 / -1;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--rt-text-faint);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.input,
.dropdown,
.gs-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--rt-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--rt-text);
  font: inherit;
}

.input:focus,
.dropdown:focus,
.gs-input:focus {
  outline: none;
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

.gs-table-wrap,
.table-wrap {
  overflow: auto;
  border-radius: var(--rt-radius-md);
  border: 1px solid var(--rt-border);
}

.gs-table,
.table {
  width: 100%;
  border-collapse: collapse;
}

.gs-table th,
.gs-table td,
.table th,
.table td {
  padding: 12px;
  border-top: 1px solid var(--rt-border-subtle);
  text-align: left;
  vertical-align: top;
}

.gs-table thead th,
.table thead th,
.table th {
  border-top: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--rt-text-faint);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.gs-pill-green,
.alert-ok,
.gs-alert-ok {
  border-color: rgba(113, 215, 166, 0.34);
  background: rgba(113, 215, 166, 0.14);
  color: var(--rt-text);
}

.gs-pill-red,
.alert-bad,
.gs-alert-danger {
  border-color: rgba(255, 140, 152, 0.34);
  background: rgba(255, 140, 152, 0.14);
  color: var(--rt-text);
}

.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rt-border2), transparent);
}

@media (max-width: 1024px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

  .nav {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 820px) {
  .grid,
  .form-grid,
  .two,
  .gs-split {
    grid-template-columns: 1fr;
  }

  .me {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

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