/* Layout — Nav, content area, responsive */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--tn-font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

/* Top nav */
.nav {
  background: var(--tn-charcoal);
  color: white;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.nav-logo {
  width: 28px;
  height: 28px;
  background: var(--tn-primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-dots {
  display: flex;
  gap: 2px;
}

.nav-dot {
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
}

.nav-dot:nth-child(2) {
  width: 5px;
  height: 5px;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.15s;
  cursor: pointer;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-user {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.nav-logout {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-logout:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Main content */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.main-wide {
  max-width: 1400px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--tn-primary-blue);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .sep {
  color: var(--color-border);
}

/* Page header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-header .actions {
  display: flex;
  gap: 8px;
}

/* Grid layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav { padding: 0 16px; gap: 16px; }
  .main { padding: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
