/* Crump Vision — shared workspace presentation rules.
 * Studios is no longer a primary destination, but this stylesheet remains in
 * the bundle. Keep its global helpers aligned with the active product shell. */

.cv-view {
  background: #0d1015;
  color: #f7f4ec;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100%;
  padding: 48px 32px 96px;
  box-sizing: border-box;
}

.cv-wrap {
  max-width: 1150px;
  margin: 0 auto;
}

.cv-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #dec57e;
  margin: 0 0 12px;
  font-weight: 700;
}

.cv-headline {
  font-weight: 690;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  color: #f7f4ec;
}

.cv-sub {
  font-size: 16px;
  line-height: 1.65;
  color: #adb3bb;
  margin: 0 0 44px;
  max-width: 60ch;
}

.cv-card {
  background: #15191f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.cv-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cv-card-title {
  font-size: 22px;
  font-weight: 680;
  margin: 0;
  color: #f7f4ec;
  letter-spacing: -0.02em;
}

.cv-card-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #dec57e;
  white-space: nowrap;
}

.cv-card-copy {
  font-size: 14px;
  line-height: 1.65;
  color: #adb3bb;
  margin: 0 0 24px;
  max-width: 62ch;
}

/* Mode pills */
.cv-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cv-pill {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: #adb3bb;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cv-pill:hover {
  color: #f7f4ec;
  border-color: rgba(222, 197, 126, 0.48);
}

.cv-pill[aria-pressed="true"] {
  background: rgba(222, 197, 126, 0.12);
  border-color: #c6a95f;
  color: #dec57e;
}

.cv-pill:focus-visible {
  outline: 2px solid #dec57e;
  outline-offset: 3px;
}

.cv-mode-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #adb3bb;
  margin: 0 0 20px;
  min-height: 21px;
}

/* Prompt */
.cv-field-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #dec57e;
  margin: 0 0 10px;
  font-weight: 600;
}

.cv-textarea {
  width: 100%;
  box-sizing: border-box;
  background: #10141a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  color: #f7f4ec;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
  min-height: 92px;
  resize: vertical;
  margin-bottom: 20px;
}

.cv-textarea::placeholder {
  color: #7f8790;
}

.cv-textarea:focus {
  outline: 2px solid #dec57e;
  outline-offset: 3px;
  border-color: #c6a95f;
}

/* Buttons */
.cv-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cv-btn {
  appearance: none;
  border-radius: 12px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cv-btn-primary {
  background: #dec57e;
  color: #15120a;
  border-color: #dec57e;
}

.cv-btn-primary:hover {
  background: #ead392;
  border-color: #ead392;
}

.cv-btn-ghost {
  background: transparent;
  color: #dec57e;
  border-color: rgba(222, 197, 126, 0.44);
}

.cv-btn-ghost:hover {
  border-color: #dec57e;
  color: #ead392;
}

.cv-btn:focus-visible {
  outline: 2px solid #dec57e;
  outline-offset: 3px;
}

.cv-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}

.cv-status {
  font-size: 13px;
  color: #adb3bb;
  margin: 14px 0 0;
  min-height: 20px;
}

.cv-status.is-error {
  color: #dec57e;
}

/* Gallery */
.cv-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 18px;
}

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

.cv-gallery-item {
  background: #10141a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 18px;
  text-decoration: none;
  color: #f7f4ec;
  display: block;
  transition: border-color 0.15s ease;
}

a.cv-gallery-item:hover {
  border-color: rgba(222, 197, 126, 0.48);
}

a.cv-gallery-item:focus-visible {
  outline: 2px solid #dec57e;
  outline-offset: 3px;
}

.cv-gallery-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #dec57e;
  margin-bottom: 6px;
  text-transform: capitalize;
}

.cv-gallery-item span {
  display: block;
  font-size: 12px;
  color: #adb3bb;
  line-height: 1.5;
}

.cv-gallery-empty {
  border: 1px dashed rgba(222, 197, 126, 0.32);
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  color: #adb3bb;
  font-size: 14px;
  line-height: 1.7;
}

.cv-gallery-empty strong {
  display: block;
  font-weight: 650;
  font-size: 18px;
  color: #f7f4ec;
  margin-bottom: 8px;
}

.cv-loading {
  color: #adb3bb;
  font-size: 14px;
  padding: 28px 0;
  text-align: center;
}

@media (max-width: 640px) {
  .cv-view {
    padding: 32px 18px 80px;
  }

  .cv-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cv-pill,
  .cv-btn,
  .cv-gallery-item {
    transition: none;
  }
}
