:root {
  --ivory: #FAF8F3;
  --ivory-deep: #F0F4F5;
  --charcoal: #1E2426;
  --charcoal-soft: #3D494D;
  --warm-gray: #59666B;
  --peacock: #0C5266;
  --gold: #B8964F;
  --gold-light: #D4B876;
  --hairline: #9BB0B4;
  --hairline-strong: #7F989D;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', sans-serif;

  --radius-soft: 2px;
  --shadow-subtle: 0 4px 20px rgba(30, 36, 38, 0.04);
  --shadow-medium: 0 8px 30px rgba(30, 36, 38, 0.08);
  --dashboard-left: minmax(320px, 0.95fr);
  --dashboard-right: minmax(0, 1.25fr);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--ivory);
  scroll-behavior: smooth;
  height: 100%;
}

body {
  color: var(--charcoal);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Noise overlay from style guide */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--charcoal);
}

p {
  line-height: 1.6;
  font-weight: 400;
  color: var(--charcoal-soft);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Container */
.container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ===================== TOP NAV ===================== */
.guide-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 0.75px solid var(--hairline-strong);
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-nav .mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.06em;
}

.brand-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.logo-divider {
  color: var(--gold);
  margin: 0 6px;
  font-weight: 300;
}

.portal-tag {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--warm-gray);
  font-weight: 500;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-indicator.online {
  background-color: #2e7d32;
  box-shadow: 0 0 6px rgba(46, 125, 50, 0.6);
}

/* ===================== MAIN LAYOUT ===================== */
.main-content {
  display: grid;
  grid-template-columns: var(--dashboard-left) 28px var(--dashboard-right);
  gap: 24px;
  flex: 1;
  padding-top: 40px;
  padding-bottom: 60px;
  align-items: start;
}

.main-content > * {
  min-width: 0;
}

@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.workspace-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.workspace-right {
  position: relative;
  min-width: 0;
}

@media (max-width: 1024px) {
  .workspace-right {
    border-left: none;
    padding-left: 0;
  }
}

.workspace-divider {
  position: relative;
  align-self: stretch;
  justify-self: center;
  width: 28px;
  min-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  touch-action: none;
  opacity: calc(0.72 + (var(--proximity, 0) * 0.28));
}

.workspace-divider .line {
  flex: 1;
  width: 0.75px;
  min-height: 56px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--hairline-strong) 12%,
    var(--hairline-strong) 88%,
    transparent
  );
  transition: background 0.4s ease, width 0.4s ease, transform 0.4s ease;
}

.workspace-divider .ring-sm {
  width: 18px;
  height: 18px;
  border: 0.75px solid var(--gold);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.workspace-divider .ring-sm::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.workspace-divider::before {
  content: "";
  position: absolute;
  inset: 0 -10px;
}

.workspace-divider:hover .line,
.workspace-divider.is-dragging .line {
  width: 1.2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--peacock) 12%,
    var(--gold) 50%,
    var(--peacock) 88%,
    transparent
  );
}

.workspace-divider:hover .ring-sm,
.workspace-divider.is-dragging .ring-sm {
  transform: rotate(180deg) scale(1.2);
  border-color: var(--charcoal);
  box-shadow: 0 0 0 4px rgba(184, 150, 79, 0.08);
}

.workspace-divider.is-dragging {
  opacity: 1;
}

body.is-resizing-dashboard {
  cursor: col-resize;
  user-select: none;
}

@media (max-width: 1024px) {
  .workspace-divider {
    width: 100%;
    min-height: 28px;
    height: 28px;
    flex-direction: row;
    cursor: default;
    pointer-events: none;
    touch-action: auto;
  }

  .workspace-divider .line {
    width: auto;
    height: 0.75px;
    min-height: 0;
    min-width: 56px;
    background: linear-gradient(
      to right,
      transparent,
      var(--hairline-strong) 12%,
      var(--hairline-strong) 88%,
      transparent
    );
  }

  .workspace-divider:hover .line {
    width: auto;
    height: 0.75px;
    background: linear-gradient(
      to right,
      transparent,
      var(--hairline-strong) 12%,
      var(--hairline-strong) 88%,
      transparent
    );
  }
}

/* ===================== BLOCK HEAD ===================== */
.block-head {
  margin-bottom: 8px;
}

.block-head .eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--peacock);
  display: block;
  margin-bottom: 4px;
}

.block-head h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.block-head .desc {
  font-size: 14px;
  color: var(--warm-gray);
  max-width: 580px;
}

/* ===================== STATS ===================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(250, 248, 243, 0.5);
  border: 0.75px solid var(--hairline);
  padding: 16px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.stat-card .value {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--peacock);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-card .label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* ===================== FRAMES & CARDS ===================== */
.frame {
  padding: 24px;
  background: white;
  position: relative;
}

.frame h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}

.frame p.note {
  font-size: 12px;
  color: var(--warm-gray);
  line-height: 1.5;
}

/* Stepped frame clip path */
.frame-stepped {
  border: 0.75px solid var(--gold);
  clip-path: polygon(12px 0%, 100% 0%, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0% 100%, 0% 12px);
  background: rgba(250, 248, 243, 0.4);
}

/* Quick Capture */
.quick-capture-panel textarea {
  width: 100%;
  height: 80px;
  font-family: var(--sans);
  font-size: 13px;
  border: none;
  border-bottom: 0.75px solid var(--hairline-strong);
  background: transparent;
  padding: 8px 0;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease;
}

.quick-capture-panel textarea:focus {
  border-color: var(--gold);
}

/* ===================== FILTERS & SEARCH ===================== */
.search-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: rgba(240, 244, 245, 0.6);
  border: 0.75px solid var(--hairline-strong);
}

.search-field input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 0.75px solid var(--hairline-strong);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-field input:focus {
  border-color: var(--peacock);
}

.filters-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  width: 70px;
  flex-shrink: 0;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border: 0.75px solid var(--hairline-strong);
  background: transparent;
  color: var(--charcoal-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover {
  border-color: var(--peacock);
  color: var(--peacock);
}

.pill.active {
  background: var(--peacock);
  color: var(--ivory);
  border-color: var(--peacock);
}

/* DB Actions Toolbar */
.db-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  margin-top: -8px;
  flex-wrap: wrap;
}

/* ===================== PROJECTS LIST ===================== */
.projects-list-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 0.75px solid var(--hairline-strong);
  padding-bottom: 10px;
}

.list-header span {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--warm-gray);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 700px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom Scrollbar for scrollable lists */
.projects-list::-webkit-scrollbar,
.project-form::-webkit-scrollbar {
  width: 5px;
}

.projects-list::-webkit-scrollbar-track,
.project-form::-webkit-scrollbar-track {
  background: transparent;
}

.projects-list::-webkit-scrollbar-thumb,
.project-form::-webkit-scrollbar-thumb {
  background: var(--hairline);
  border-radius: 2px;
}

.projects-list::-webkit-scrollbar-thumb:hover,
.project-form::-webkit-scrollbar-thumb:hover {
  background: var(--hairline-strong);
}

.no-projects-msg {
  text-align: center;
  padding: 40px;
  font-style: italic;
  color: var(--warm-gray);
  border: 0.75px dashed var(--hairline);
  font-size: 13px;
}

/* Project Card */
.project-card {
  background: white;
  border: 0.75px solid var(--hairline);
  padding: 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  border-color: var(--peacock);
  box-shadow: var(--shadow-subtle);
  transform: translateX(4px);
}

.project-card.active {
  border-color: var(--gold);
  background: rgba(250, 248, 243, 0.6);
  box-shadow: var(--shadow-medium);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.card-client {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--charcoal);
}

.card-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.status-badge.complete {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

.status-badge.incomplete {
  background: rgba(184, 150, 79, 0.1);
  color: var(--gold);
}

.card-industry-date {
  font-size: 11px;
  color: var(--warm-gray);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.card-problem-snippet {
  font-size: 13px;
  color: var(--charcoal-soft);
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 38px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.75px solid var(--ivory-deep);
  padding-top: 10px;
}

.card-category-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--peacock);
  font-weight: 600;
}

.card-tags {
  font-size: 10px;
  color: var(--warm-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

/* ===================== EDITOR SIDE ===================== */
.editor-header-sticky {
  position: sticky;
  top: 60px;
  z-index: 10;
  background: var(--ivory);
  padding-bottom: 24px;
  border-bottom: 0.75px solid var(--hairline);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.editor-title-row h2 {
  font-size: 32px;
  margin-top: 4px;
}

.auto-save-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: white;
  padding: 4px 10px;
  border: 0.75px solid var(--hairline);
}

.auto-save-indicator .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warm-gray);
}

.auto-save-indicator.saving .dot {
  background: var(--gold);
  animation: pulse 1s infinite alternate;
}

.auto-save-indicator.saved .dot {
  background: #2e7d32;
}

@keyframes pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.project-form {
  padding-right: 12px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 0.75px solid var(--hairline-strong);
  padding-bottom: 8px;
  font-weight: 600;
}

/* Form Fields */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 580px) {
  .grid-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filter-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .filter-label {
    width: auto;
  }

  .list-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .list-header .btn {
    width: 100%;
    justify-content: center;
  }
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 6px;
  font-weight: 500;
}

.field input[type="text"],
.field input[type="url"],
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 0.75px solid var(--hairline-strong);
  padding: 8px 0;
  outline: none;
  transition: border-color 0.2s ease;
}

.field textarea {
  height: 100px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
}

/* Custom Select styling */
.custom-select {
  width: 100%;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 0.75px solid var(--hairline-strong);
  padding: 8px 0;
  outline: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%2359666B' d='M0 0l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.custom-select:focus {
  border-color: var(--gold);
}

/* ===================== UPLOAD ZONE ===================== */
.upload-dropzone {
  border: 0.75px dashed var(--hairline-strong);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(250, 248, 243, 0.4);
  position: relative;
  transition: all 0.2s ease;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--gold);
  background: rgba(240, 244, 245, 0.6);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone-prompt {
  font-size: 11px;
  color: var(--warm-gray);
  pointer-events: none;
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  pointer-events: auto;
}

.preview-item {
  position: relative;
  width: 60px;
  height: 60px;
  border: 0.75px solid var(--hairline);
  background: white;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: 50%;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.preview-remove:hover {
  background: #c62828;
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  pointer-events: auto;
}

/* ===================== SWITCH TOGGLE ===================== */
.status-toggle-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-toggle-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  font-weight: 500;
}

.status-txt-value {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--gold);
}

.status-txt-value.complete {
  color: #2e7d32;
}

/* Toggle Switch slider */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--hairline);
  transition: .25s ease;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2e7d32;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* ===================== BUTTONS ===================== */
.btn {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius-soft);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  outline: none;
  font-weight: 500;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  border: 0.75px solid var(--charcoal);
}

.btn-primary:hover {
  background: var(--peacock);
  border-color: var(--peacock);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 0.75px solid var(--charcoal);
}

.btn-secondary:hover {
  border-color: var(--peacock);
  color: var(--peacock);
}

.btn-delete:hover {
  border-color: #c62828;
  color: #c62828;
  background: rgba(198, 40, 40, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--warm-gray);
  border: 0.75px solid transparent;
  padding-left: 0;
  padding-right: 0;
  position: relative;
}

.btn-ghost:hover {
  color: var(--charcoal);
}

.btn-deco {
  background: var(--ivory);
  color: var(--charcoal);
  border: 0.75px solid var(--gold);
  position: relative;
  padding: 10px 20px;
}

.btn-deco::before,
.btn-deco::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: 0.75px solid var(--gold);
  transform: rotate(45deg);
  top: 50%;
  margin-top: -2px;
}

.btn-deco::before {
  left: -2px;
}

.btn-deco::after {
  right: -2px;
}

.btn-deco:hover {
  background: var(--peacock);
  color: var(--ivory);
}

.btn-deco:hover::before,
.btn-deco:hover::after {
  border-color: var(--peacock);
  background: var(--peacock);
}

.editor-actions-section {
  border-top: 0.75px solid var(--hairline);
  padding-top: 24px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.editor-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ===================== COMPASS DIVIDER ===================== */
.div-compass {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 20px;
}

.div-compass .line {
  flex: 1;
  height: 0.75px;
  background: var(--hairline-strong);
}

.div-compass .ring-sm {
  width: 14px;
  height: 14px;
  border: 0.75px solid var(--gold);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.div-compass .ring-sm::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ===================== FOOTER ===================== */
footer {
  margin-top: auto;
  background: transparent;
  padding-bottom: 24px;
}

.footer-content {
  text-align: center;
}

.copyright {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

/* ===================== MODALS ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 36, 38, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-medium);
}

.clients-manager-content {
  max-width: 800px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.75px solid var(--hairline-strong);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-family: var(--serif);
  font-size: 24px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--warm-gray);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--charcoal);
}

/* ===================== CLIENTS TABLE ===================== */
.clients-list-table-container {
  overflow-x: auto;
  border: 0.75px solid var(--hairline);
  background: rgba(250, 248, 243, 0.4);
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.clients-table th, 
.clients-table td {
  padding: 12px 16px;
  border-bottom: 0.75px solid var(--hairline);
  font-size: 13px;
  vertical-align: middle;
}

.clients-table th {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  background: var(--ivory-deep);
  font-size: 11px;
}

.clients-table tr:last-child td {
  border-bottom: none;
}

.clients-table tbody tr:hover {
  background: rgba(240, 244, 245, 0.4);
}

.clients-table-logo {
  height: 24px;
  max-width: 60px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* ===================== CLIENT CARD IN PROJECT FORM ===================== */
.client-info-card {
  transition: all 0.2s ease;
}

.client-info-card:hover {
  border-color: var(--peacock) !important;
}

.client-info-logo {
  mix-blend-mode: multiply;
  background: white;
  padding: 2px 4px;
  border: 0.75px solid var(--hairline);
}

/* ===================== DATABASE EXPLORER ===================== */
.view-tabs button.active {
  color: var(--peacock) !important;
  border-bottom-color: var(--peacock) !important;
  font-weight: 500;
}

.view-tabs button:hover {
  color: var(--charcoal) !important;
}

.explorer-toolbar {
  border: 0.75px solid var(--hairline);
  background: white;
}

.explorer-table-wrapper {
  overflow-x: auto;
  border: 0.75px solid var(--hairline-strong);
  background: white;
  max-height: 600px;
  width: 100%;
}

.explorer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.explorer-table th,
.explorer-table td {
  padding: 10px 14px;
  border-bottom: 0.75px solid var(--hairline);
  border-right: 0.75px solid var(--hairline);
  position: relative;
  vertical-align: middle;
}

.explorer-table th:last-child,
.explorer-table td:last-child {
  border-right: none;
}

.explorer-table th {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  background: var(--ivory-deep);
  font-size: 11px;
  position: sticky;
  top: 0;
  z-index: 5;
  user-select: none;
  cursor: grab;
  transition: background-color 0.2s ease;
}

.explorer-table th:hover {
  background-color: #e5eced;
}

.explorer-table th:active {
  cursor: grabbing;
}

.explorer-table th.drag-over {
  border-left: 2px dashed var(--gold) !important;
  background-color: rgba(184, 150, 79, 0.08);
}

.explorer-table tbody tr:hover {
  background-color: rgba(240, 244, 245, 0.3);
}

.explorer-assets-cell {
  min-width: 240px;
  max-width: 420px;
}

.explorer-image-path-cell {
  min-width: 220px;
  max-width: 360px;
}

.asset-pill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  white-space: normal;
}

.asset-pill,
.asset-upload-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 180px;
  padding: 3px 9px;
  border: 0.75px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.2;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-pill:hover {
  border-color: var(--gold);
  color: var(--peacock);
}

.asset-upload-pill {
  cursor: pointer;
  border-color: var(--gold);
  background: rgba(184, 150, 79, 0.08);
  color: var(--peacock);
}

.asset-upload-pill:hover {
  background: rgba(184, 150, 79, 0.16);
}

.asset-upload-pill:disabled {
  cursor: progress;
  opacity: 0.7;
}

.asset-upload-input {
  display: none;
}

.explorer-url-pill-cell {
  min-width: 260px;
}

.url-pill-wrap {
  display: inline-flex;
  align-items: center;
  max-width: 240px;
}

.url-link-pill {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-pill-remove {
  height: 24px;
  width: 22px;
  border: 0.75px solid rgba(12, 82, 102, 0.2);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: rgba(12, 82, 102, 0.04);
  color: var(--warm-gray);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.url-pill-remove:hover {
  color: #c62828;
  background: rgba(198, 40, 40, 0.08);
}

.explorer-checkbox-cell {
  text-align: center;
}

.explorer-cell-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--peacock);
  cursor: pointer;
}

/* Inline edit styles */
.explorer-cell-editable {
  cursor: pointer;
}

.explorer-cell-editable:hover {
  background-color: rgba(184, 150, 79, 0.05);
}

.explorer-cell-editing {
  padding: 0 !important;
  background-color: white !important;
}

.explorer-cell-input,
.explorer-cell-select {
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold) !important;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--charcoal);
  outline: none;
  background: white;
  box-sizing: border-box;
}

.explorer-cell-input:focus,
.explorer-cell-select:focus {
  border-color: var(--peacock) !important;
}

/* Active filter pills */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  background: var(--ivory-deep);
  color: var(--charcoal-soft);
  border: 0.75px solid var(--hairline-strong);
  padding: 4px 10px;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--gold);
}

.filter-pill .remove-filter-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  color: var(--warm-gray);
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
}

.filter-pill .remove-filter-btn:hover {
  color: #c62828;
}

.explorer-footer {
  margin-top: 8px;
}

/* Card Explorer Layout */
.explorer-card-wrapper {
  transition: opacity 0.2s ease;
}

.explorer-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.explorer-card {
  background: white;
  border: 0.75px solid var(--hairline-strong);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.explorer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: var(--peacock);
}

.explorer-card-media {
  width: 100%;
  height: 160px;
  background: var(--ivory-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 0.75px solid var(--hairline);
  overflow: hidden;
}

.explorer-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.explorer-card:hover .explorer-card-img {
  transform: scale(1.03);
}

.explorer-card-fallback-grad {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ivory-deep) 0%, #d8e5e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--peacock);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Monogram/Avatar initials badge */
.explorer-card-initials-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peacock) 0%, #052c38 100%);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 2px solid white;
}

.explorer-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.explorer-card-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  margin-bottom: 6px;
}

.explorer-card-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.explorer-card-desc {
  font-size: 12px;
  color: var(--charcoal-soft);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explorer-card-meta-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 0.75px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--warm-gray);
}

.explorer-card-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--ivory-deep);
  border: 0.75px solid var(--hairline-strong);
  font-size: 10px;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal-soft);
}

/* Asset File Indicator */
.explorer-card-asset-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--peacock);
  color: var(--ivory);
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Detail Edit Modal adjustments */
.record-detail-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 4px;
}

.record-detail-modal .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.record-detail-modal .field label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  text-align: left;
}

.record-detail-modal input[type="text"],
.record-detail-modal input[type="number"],
.record-detail-modal input[type="url"],
.record-detail-modal select,
.record-detail-modal textarea {
  width: 100%;
  padding: 10px;
  border: 0.75px solid var(--hairline-strong);
  background: var(--ivory-deep);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--charcoal);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.record-detail-modal input:focus,
.record-detail-modal select:focus,
.record-detail-modal textarea:focus {
  border-color: var(--peacock) !important;
  background: white;
}

/* ===================== PORTAL HEADER NAVIGATION ===================== */
.portal-nav {
  display: flex;
  gap: 24px;
}

.portal-nav .nav-link {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.portal-nav .nav-link:hover {
  color: var(--charcoal);
}

.portal-nav .nav-link.active {
  color: var(--peacock);
  border-bottom-color: var(--peacock);
  font-weight: 500;
}

/* ===================== AUTOCOMPLETE COMBOBOX ===================== */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 0.75px solid var(--hairline-strong);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-top: 2px;
}

.autocomplete-item {
  padding: 8px 12px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--charcoal);
  transition: all 0.15s ease;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background-color: var(--ivory-deep);
  color: var(--peacock);
}


/* ===================== AIRTABLE-STYLE DATABASE TOOLBAR ===================== */
.airtable-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 0.75px solid var(--hairline-strong);
  border-radius: var(--radius-soft);
  height: 48px;
  padding: 0 16px;
  gap: 12px;
  font-family: var(--sans);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 10;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--hairline);
  margin: 0 4px;
}

/* Table Tabs */
.table-tabs {
  display: flex;
  gap: 4px;
}

.table-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--warm-gray);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.table-tab-btn:hover {
  background: var(--ivory-deep);
  color: var(--charcoal);
}

.table-tab-btn.active {
  background: rgba(12, 82, 102, 0.08);
  color: var(--peacock);
  font-weight: 600;
}

.table-select {
  min-width: 136px;
  height: 32px;
  border: 0.75px solid var(--hairline-strong);
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 0 30px 0 10px;
  border-radius: 4px;
  outline: none;
}

.table-select:focus {
  border-color: var(--gold);
}

.asset-source-modal {
  max-width: 720px;
  width: min(720px, calc(100vw - 32px));
}

.asset-source-subtitle {
  margin: -4px 0 20px;
  color: var(--warm-gray);
  font-size: 14px;
  line-height: 1.5;
}

.asset-source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 14px;
}

.asset-source-grid.url-only {
  grid-template-columns: 1fr;
}

.asset-source-panel {
  border: 0.75px solid var(--hairline-strong);
  background: var(--ivory);
  border-radius: 4px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.asset-source-panel-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.asset-source-icon {
  flex: 0 0 auto;
  min-width: 42px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.75px solid rgba(184, 150, 79, 0.45);
  color: var(--peacock);
  background: rgba(184, 150, 79, 0.08);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.asset-source-panel h4 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--charcoal);
}

.asset-source-panel p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--warm-gray);
}

.asset-source-action,
.asset-source-upload {
  width: 100%;
  justify-content: center;
}

.asset-source-footer {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .asset-source-grid {
    grid-template-columns: 1fr;
  }
}

/* Toolbar Buttons */
.toolbar-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--charcoal-soft);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toolbar-btn:hover {
  background: var(--ivory-deep);
}

.toolbar-btn.active {
  background: rgba(184, 150, 79, 0.1);
  color: var(--gold);
}

.toolbar-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.badge-label {
  background: var(--ivory-deep);
  color: var(--peacock);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

.toolbar-btn.active .badge-label {
  background: var(--gold);
  color: var(--ivory);
}

/* Menus & Popovers */
.toolbar-menu-container {
  position: relative;
}

.toolbar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 0.75px solid var(--hairline-strong);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  width: 240px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 100;
  animation: popover-fade-in 0.15s ease-out;
}

.toolbar-dropdown.wide-dropdown {
  width: 480px;
  max-width: calc(100vw - 80px);
}

@keyframes popover-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--warm-gray);
  padding: 12px 16px 6px 16px;
  font-weight: 600;
}

.dropdown-divider {
  height: 0.75px;
  background: var(--ivory-deep);
  margin: 4px 0;
}

/* Saved Views Items */
.dropdown-items-list {
  display: flex;
  flex-direction: column;
}

.dropdown-item-btn {
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--charcoal);
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.dropdown-item-btn:hover {
  background: var(--ivory-deep);
}

.dropdown-item-btn.active {
  background: rgba(12, 82, 102, 0.05);
  color: var(--peacock);
  font-weight: 600;
}

.dropdown-action-btn {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--peacock);
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.15s ease;
}

.dropdown-action-btn:hover {
  background: var(--ivory-deep);
}

.dropdown-action-btn.delete-action {
  color: #c62828;
}

.dropdown-action-btn.delete-action:hover {
  background: rgba(198, 40, 40, 0.05);
}

/* Hide Fields Checklist */
.dropdown-search-wrapper {
  padding: 8px 12px;
  border-bottom: 0.75px solid var(--ivory-deep);
}

.dropdown-search-wrapper input {
  width: 100%;
  border: none;
  background: var(--ivory-deep);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--charcoal);
  outline: none;
}

.dropdown-actions-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 16px;
}

.action-link {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--peacock);
  cursor: pointer;
  padding: 0;
}

.action-link:hover {
  text-decoration: underline;
}

.checkbox-list {
  padding: 6px 0;
  max-height: 250px;
  overflow-y: auto;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 13px;
  user-select: none;
}

.checkbox-item:hover {
  background: var(--ivory-deep);
}

.checkbox-item input {
  cursor: pointer;
  margin: 0;
}

/* Filters Menu */
.filters-list {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.filter-row select, .filter-row input {
  font-family: var(--sans);
  font-size: 12px;
  border: 0.75px solid var(--hairline-strong);
  border-radius: 3px;
  padding: 6px 8px;
  background: transparent;
  color: var(--charcoal);
  outline: none;
  height: 35px;
}

.filter-row select {
  cursor: pointer;
}

.filter-row input {
  flex: 1;
  min-width: 0;
}

.btn-remove-row-filter {
  background: transparent;
  border: none;
  color: var(--warm-gray);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-row-filter:hover {
  color: #c62828;
}

.dropdown-footer-action {
  padding: 10px 16px;
  border-top: 0.75px solid var(--ivory-deep);
}

.action-link-btn {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--peacock);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.action-link-btn:hover {
  color: var(--charcoal);
}

/* Sorting Direction */
.sort-direction-btn {
  flex: 1;
  background: var(--ivory-deep);
  border: 0.75px solid var(--hairline);
  font-family: var(--sans);
  font-size: 11px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: center;
  border-radius: 3px;
  color: var(--charcoal-soft);
  transition: all 0.15s ease;
}

.sort-direction-btn.active {
  background: var(--peacock);
  color: var(--ivory);
  border-color: var(--peacock);
}

/* Search Wrapper */
.toolbar-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.toolbar-search-wrapper .search-icon {
  position: absolute;
  left: 10px;
  color: var(--warm-gray);
  font-size: 12px;
  pointer-events: none;
}

.toolbar-search-wrapper input {
  background: var(--ivory-deep);
  border: 0.75px solid transparent;
  border-radius: 20px;
  padding: 6px 12px 6px 28px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--charcoal);
  outline: none;
  width: 180px;
  transition: all 0.25s ease;
  height: 32px;
}

.toolbar-search-wrapper input:focus {
  width: 240px;
  background: #ffffff;
  border-color: var(--hairline-strong);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--warm-gray);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-search-btn:hover {
  color: var(--charcoal);
}

/* Row index / actions column */
.explorer-row-header-cell {
  background: var(--ivory-deep) !important;
  border-right: 0.75px solid var(--hairline-strong) !important;
  font-weight: 500;
  color: var(--warm-gray);
  user-select: none;
}

.row-delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  color: #c62828;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  line-height: 1;
  transition: transform 0.15s ease;
}

.row-delete-btn:hover {
  transform: scale(1.25);
}

/* Selected row highlighting */
.explorer-table tbody tr.row-selected td {
  background-color: rgba(12, 82, 102, 0.05) !important;
}

/* Floating bulk actions bar */
.bulk-actions-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 36, 38, 0.96); /* Charcoal soft */
  border: 0.75px solid var(--hairline-strong);
  border-radius: 30px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  z-index: 1000;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 13px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.bulk-actions-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.bulk-actions-count {
  font-weight: 600;
  color: var(--gold-light);
}

.bulk-actions-divider {
  width: 1px;
  height: 16px;
  background: var(--hairline-strong);
}

.bulk-actions-btn {
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bulk-actions-btn.delete-btn {
  color: #ff5252;
  border: 0.75px solid rgba(255, 82, 82, 0.3);
}

.bulk-actions-btn.delete-btn:hover {
  background: rgba(255, 82, 82, 0.1);
  border-color: #ff5252;
}

.bulk-actions-btn.cancel-btn {
  color: var(--ivory);
  opacity: 0.8;
}

.bulk-actions-btn.cancel-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

/* ===================== BRAND & SYSTEM SETUP PAGE STYLES ===================== */

/* Frame styles from style guide */
.frame-hairline {
  border: 0.75px solid var(--hairline-strong);
}

.frame-double {
  border: 0.75px solid var(--charcoal);
  outline: 0.75px solid var(--charcoal);
  outline-offset: 5px;
}

.frame-stepped {
  border: 0.75px solid var(--gold);
  clip-path: polygon(16px 0%, 100% 0%, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0% 100%, 0% 16px);
}

.frame-tick {
  border: 0.75px solid var(--hairline-strong);
  position: relative;
}

.frame-tick::before,
.frame-tick::after,
.frame-tick .tick-bl,
.frame-tick .tick-br {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 0.75px solid var(--gold);
  border-radius: 50%;
  background: var(--ivory); /* cover standard border line behind it */
  z-index: 2;
}

.frame-tick::before {
  top: -3px;
  left: -3px;
}

.frame-tick::after {
  top: -3px;
  right: -3px;
}

.frame-tick .tick-bl {
  bottom: -3px;
  left: -3px;
}

.frame-tick .tick-br {
  bottom: -3px;
  right: -3px;
}

/* Before/After Interactive Slider */
.before-after-slider {
  position: relative;
  width: 100%;
  height: 480px;
  border: 0.75px solid var(--hairline-strong);
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  margin-top: 40px;
}

.slider-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  user-select: none;
}

.slider-panel.before-panel {
  background: #f7f5f0;
  color: var(--warm-gray);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: monospace;
}

.slider-panel.after-panel {
  background: var(--ivory);
  color: var(--charcoal);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: calc(var(--slide-pos, 50) * 1%);
  overflow: hidden;
  border-right: 1.5px solid var(--gold);
  z-index: 10;
}

.before-after-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
}

.slider-handle-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--slide-pos, 50) * 1%);
  width: 2px;
  background: var(--gold);
  z-index: 15;
  pointer-events: none;
  transform: translateX(-50%);
}

.slider-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  font-size: 14px;
  font-weight: bold;
  pointer-events: none;
}

.slider-handle-button::before {
  content: "↔";
}

/* Custom Visual content for Before vs After */
.slider-content-wrapper {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.badge-warning-custom {
  align-self: center;
  border: 1px dashed #d32f2f;
  color: #d32f2f;
  padding: 6px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(211, 47, 47, 0.05);
}

.badge-success-custom {
  align-self: center;
  border: 0.75px solid var(--peacock);
  color: var(--peacock);
  padding: 6px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  background: rgba(12, 82, 102, 0.05);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-success-custom::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e7d32;
  box-shadow: 0 0 6px #2e7d32;
}

.before-list {
  text-align: left;
  margin: 12px auto;
  font-size: 13px;
  line-height: 1.8;
  color: var(--warm-gray);
  max-width: 400px;
}

.after-preview-card {
  background: white;
  border: 0.75px solid var(--hairline-strong);
  padding: 24px;
  border-radius: var(--radius-soft);
  text-align: left;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

/* Projects grid and list layouts for Branding page */
.projects-showcase-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 56px;
}

.project-deep-dive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 0.75px solid var(--hairline);
}

.project-deep-dive:last-child {
  border-bottom: none;
}

@media (max-width: 860px) {
  .project-deep-dive {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.project-visual-side {
  position: relative;
}

.project-visual-wrapper {
  background: white;
  border: 0.75px solid var(--hairline-strong);
  padding: 10px;
  box-shadow: var(--shadow-subtle);
}

.project-visual-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 380px;
}

.project-details-side h3 {
  font-size: 36px;
  margin-bottom: 20px;
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.project-meta-item {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  border: 0.75px solid var(--hairline-strong);
  padding: 4px 10px;
}

.project-section-title {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 18px;
}

.project-details-side p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-bullet-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.project-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--charcoal-soft);
  line-height: 1.8;
}

.project-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--gold);
}

.project-quote-block {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
  color: var(--charcoal);
  border-left: 2px solid var(--peacock);
  padding-left: 18px;
  margin: 24px 0;
}

.project-quote-author {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  margin-top: 4px;
}

/* Competencies Grid */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .competencies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .competencies-grid {
    grid-template-columns: 1fr;
  }
}

.competency-card {
  background: white;
  border: 0.75px solid var(--hairline-strong);
  padding: 32px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.competency-card:hover {
  transform: translateY(-2px);
  border-color: var(--peacock);
}

.competency-card h4 {
  font-family: var(--serif);
  font-size: 20px;
  margin-bottom: 10px;
}

.competency-card p {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.5;
}

.competency-icon-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.75px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 16px;
}

/* Why Hire Me Grid */
.why-hire-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .why-hire-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.why-hire-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.why-hire-number {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold-light);
  line-height: 1;
  font-weight: 500;
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

.why-hire-content h4 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.why-hire-content p {
  font-size: 13.5px;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* Related Work navigation strip */
.related-work-strip {
  padding: 60px 0;
  background: rgba(240, 244, 245, 0.4);
  border-top: 0.75px solid var(--hairline);
  border-bottom: 0.75px solid var(--hairline);
  text-align: center;
}

.related-links-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.related-link {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warm-gray);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 4px;
}

.related-link:hover {
  color: var(--peacock);
  border-bottom-color: var(--peacock);
}

/* ===================== SYSTEMS / WORKFLOW PAGE STYLES ===================== */

.automation-simulator-container {
  max-width: 800px;
  width: 100%;
  margin: 40px auto 0;
  background: white;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.simulator-pipeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 40px 0 60px 0;
  padding: 0 20px;
}

.simulator-pipeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--hairline-strong);
  z-index: 1;
  transform: translateY(-50%);
}

.simulator-progress-bar {
  position: absolute;
  top: 50%;
  left: 40px;
  width: calc(var(--progress-val, 0) * 1%);
  height: 2px;
  background: var(--peacock);
  box-shadow: 0 0 8px rgba(12, 82, 102, 0.6);
  z-index: 2;
  transform: translateY(-50%);
  transition: width 0.4s ease;
}

.simulator-node {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  transition: all 0.4s ease;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--warm-gray);
  box-shadow: var(--shadow-subtle);
}

.simulator-node.active {
  border-color: var(--peacock);
  color: var(--peacock);
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(12, 82, 102, 0.25);
  animation: pulse-node 1.5s infinite alternate;
}

.simulator-node.completed {
  border-color: var(--gold);
  background: var(--ivory-deep);
  color: var(--gold);
}

.simulator-node .node-label {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  transition: color 0.4s ease;
}

.simulator-node.active .node-label {
  color: var(--peacock);
  font-weight: 600;
}

.simulator-node.completed .node-label {
  color: var(--charcoal);
}

@keyframes pulse-node {
  0% { box-shadow: 0 0 0 0 rgba(12, 82, 102, 0.4); }
  100% { box-shadow: 0 0 0 8px rgba(12, 82, 102, 0.05); }
}

.simulator-panel-details {
  min-height: 80px;
  background: var(--ivory);
  border-left: 3px solid var(--hairline-strong);
  padding: 20px;
  margin: 30px 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  color: var(--charcoal-soft);
  transition: all 0.3s ease;
}

.simulator-panel-details.active {
  border-left-color: var(--peacock);
  background: rgba(240, 244, 245, 0.8);
}

.simulator-panel-details strong {
  color: var(--charcoal);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* Embed Iframe Widget styling */
.calendar-embed-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border: 0.75px solid var(--hairline-strong);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.calendar-embed-wrapper iframe {
  width: 100%;
  border: none;
  background: white;
}

/* ===================== PRODUCTION / FILMMAKING PAGE STYLES ===================== */

.showcase-carousel-container {
  max-width: 960px;
  width: 100%;
  margin: 40px auto 0;
  position: relative;
  aspect-ratio: 21/9;
  background: var(--charcoal);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

@media (max-width: 768px) {
  .showcase-carousel-container {
    aspect-ratio: 16/9;
  }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay to make captions readable */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 36, 38, 0.85) 0%, rgba(30, 36, 38, 0.3) 50%, transparent 100%);
  z-index: 3;
}

.carousel-caption {
  position: absolute;
  bottom: 24px;
  left: 32px;
  right: 32px;
  z-index: 4;
  color: var(--ivory);
  text-align: left;
}

.carousel-caption h4 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.carousel-caption p {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(250, 248, 243, 0.85);
  margin: 0;
  line-height: 1.4;
}

/* Dots navigation */
.carousel-dots {
  position: absolute;
  bottom: 24px;
  right: 32px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 248, 243, 0.4);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}

.department-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* ===================== EDUCATION / EDUCATIONAL DESIGN PAGE STYLES ===================== */

.card-deck-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  width: 100%;
  margin: 40px auto 0;
  perspective: 1200px;
}

@media (max-width: 860px) {
  .card-deck-container {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.flip-card {
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.flip-card.is-flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px;
  background: white;
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-subtle);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-front {
  border: 0.75px solid var(--hairline-strong);
  z-index: 2;
}

.flip-card:hover .card-front {
  border-color: var(--peacock);
  box-shadow: var(--shadow-medium);
}

.card-back {
  border: 0.75px solid var(--gold);
  background: var(--ivory);
  transform: rotateY(180deg);
  z-index: 1;
}

.card-icon-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0.75px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 20px;
}

.card-front h4 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--charcoal);
  margin-bottom: 8px;
  line-height: 1.25;
}

.card-front p.category-tag {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--peacock);
  font-weight: 500;
}

.card-back h4 {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--peacock);
  border-bottom: 0.75px solid var(--hairline);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.card-syllabus-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
  color: var(--charcoal-soft);
  flex: 1;
}

.card-syllabus-list li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}

.card-syllabus-list li::before {
  content: "▫";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ===================== AI SOLUTIONS / INTERACTIVE TERMINAL SIMULATOR ===================== */

.sim-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  max-width: 960px;
  width: 100%;
  margin: 40px auto 0;
  text-align: left;
}

@media (max-width: 860px) {
  .sim-grid-layout {
    grid-template-columns: 1fr;
  }
}

.sim-console-pane {
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: var(--radius-soft);
  border: 1px solid rgba(250, 248, 243, 0.15);
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  height: 380px;
  overflow: hidden;
}

.sim-console-header {
  background: rgba(250, 248, 243, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 0.75px solid rgba(250, 248, 243, 0.1);
}

.sim-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.sim-dot.red { background: #ff5f56; }
.sim-dot.yellow { background: #ffbd2e; }
.sim-dot.green { background: #27c93f; }

.sim-console-body {
  flex: 1;
  padding: 20px;
  font-family: monospace, Courier;
  font-size: 13px;
  line-height: 1.5;
  overflow-y: auto;
  text-align: left;
}

.sim-console-input-row {
  background: rgba(250, 248, 243, 0.04);
  padding: 12px 16px;
  border-top: 0.75px solid rgba(250, 248, 243, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sim-prompt-btn {
  background: transparent;
  border: 0.75px solid var(--gold-light);
  color: var(--gold-light);
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 11px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-prompt-btn:hover {
  background: var(--gold-light);
  color: var(--charcoal);
  border-color: var(--gold-light);
}

.sim-preview-pane {
  background: white;
  border: 0.75px solid var(--hairline-strong);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  height: 380px;
  overflow: hidden;
}

.sim-preview-header {
  background: var(--ivory);
  padding: 12px 16px;
  border-bottom: 0.75px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-preview-title {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-soft);
  font-weight: 600;
}

.sim-preview-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fdfdfd;
}

/* Animations for console */
.line-user {
  color: #27c93f;
  margin-bottom: 8px;
}
.line-agent {
  color: var(--gold-light);
  margin-bottom: 8px;
  padding-left: 8px;
}
.line-system {
  color: rgba(250, 248, 243, 0.5);
  margin-bottom: 8px;
  padding-left: 8px;
  font-style: italic;
}

/* Mock dashboard elements */
.mock-web-preview {
  border: 0.75px dashed var(--hairline-strong);
  padding: 16px;
  text-align: center;
  background: white;
  transition: background-color 0.4s ease;
}
.mock-web-preview.flash {
  background-color: rgba(184, 150, 79, 0.15);
}

.mock-db-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 12px;
}
.mock-db-table th, .mock-db-table td {
  padding: 8px 10px;
  border-bottom: 0.75px solid var(--hairline);
  text-align: left;
}
.mock-db-table th {
  background: var(--ivory);
  color: var(--charcoal-soft);
  font-weight: 500;
}

.mock-db-row-new {
  animation: slideFadeIn 0.8s ease forwards;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
    background: rgba(12, 82, 102, 0.1);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    background: transparent;
  }
}

.mock-export-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--ivory);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}
.mock-export-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--peacock);
  transition: width 1.5s ease-out;
}
