body.workspace-page,
body.settings-page {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(215, 174, 103, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(72, 120, 201, 0.14), transparent 30%),
    linear-gradient(180deg, #06080f 0%, #0a0f19 46%, #090c14 100%);
  color: var(--text);
  min-height: 100dvh;
  padding: 0 20px 56px;
}

[data-theme="light"] body.workspace-page,
[data-theme="light"] body.settings-page {
  background:
    radial-gradient(circle at top left, rgba(215, 174, 103, 0.2), transparent 28%),
    radial-gradient(circle at top right, rgba(120, 143, 211, 0.15), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #f3ecdf 48%, #efe6d8 100%);
}

body.workspace-page .container,
body.settings-page .container {
  width: min(100%, 1220px);
  min-width: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.workspace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  min-width: 0;
}

.workspace-hero-copy,
.workspace-note,
.workspace-panel,
.settings-panel {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.workspace-hero-copy,
.workspace-note {
  position: relative;
  overflow: hidden;
}

.workspace-hero-copy {
  padding: 40px 42px;
}

.workspace-hero-copy::before,
.workspace-note::before {
  content: "";
  position: absolute;
  inset: auto auto -110px -70px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 174, 103, 0.18) 0%, rgba(215, 174, 103, 0) 68%);
  pointer-events: none;
}

.workspace-kicker,
.workspace-note-label {
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.workspace-hero-copy h1 {
  margin-top: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.workspace-hero-copy .subtitle {
  max-width: 52ch;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
}

.workspace-hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workspace-note {
  padding: 24px;
}

.workspace-note-value {
  display: block;
  margin-top: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.workspace-note-text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
}

.workspace-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.workspace-panel,
.settings-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.workspace-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.workspace-panel-head h2,
.settings-panel-head h2 {
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.workspace-panel-note,
.settings-panel-note {
  max-width: 48ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}

.filter-btn:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  color: var(--text);
}

.filter-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #f1cf91);
  color: #16110a;
  box-shadow: 0 14px 28px rgba(215, 174, 103, 0.18);
}

.empty-state {
  padding: 44px 18px;
  border: 1px dashed var(--border);
  border-radius: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.load-more {
  align-self: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.load-more:hover {
  border-color: var(--border-strong);
  color: var(--accent-hover);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  max-width: min(92vw, 1120px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media {
  max-width: min(92vw, 1120px);
  max-height: 76vh;
  border-radius: 22px;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .workspace-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  body.workspace-page,
  body.settings-page {
    padding: 0 12px 36px;
  }

  body.workspace-page .container,
  body.settings-page .container {
    gap: 22px;
  }

  .workspace-hero-copy,
  .workspace-note,
  .workspace-panel,
  .settings-panel {
    border-radius: 24px;
    padding: 20px;
  }

  .workspace-hero-copy h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .workspace-hero-copy .subtitle {
    font-size: 15px;
  }

  .lightbox {
    padding: 16px;
  }
}
