/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@font-face {
  font-family: "Agustina";
  src: url("/assets/Agustina-63004df1.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.ctt-wordmark {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.ctt-wordmark--script {
  font-family: "Agustina", "Segoe Script", "Bradley Hand", cursive;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
}

.ctt-wordmark-brand {
  display: inline-block;
  white-space: nowrap;
  font-family: "Agustina", "Segoe Script", "Bradley Hand", cursive;
  font-size: x-large;
  font-weight: 900;
  line-height: 1.8;
  padding-block: 0.08em;
  background-image: linear-gradient(90deg, #111111 0%, #2a2a2a 42%, var(--brand-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.dark .ctt-wordmark-brand {
  background-image: linear-gradient(90deg, #ffffff 0%, var(--brand-purple) 100%);
}

/* Consistent select styling across browsers (single inset chevron). */
.ctt-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px 14px;
  padding-right: 2.5rem;
}

.ctt-select::-ms-expand {
  display: none;
}

/* Minor nudge for dense action-row selects. */
.ctt-select--inset-2 {
  background-position: right calc(1rem + 2px) center;
}

/* Force grabbing cursor for the entire page while a kanban card is being dragged. */
html.ctt-dragging,
html.ctt-dragging *,
body.ctt-dragging,
body.ctt-dragging * {
  cursor: grabbing !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Control-plane marketing shell shared by the standalone control pages. */
.ctt-control-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ctt-control-page__overlay {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.ctt-control-page__orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.ctt-control-page__orb--left {
  top: 5rem;
  left: -5rem;
  width: 18rem;
  height: 18rem;
}

.ctt-control-page__orb--right {
  top: 8rem;
  right: -2rem;
  width: 20rem;
  height: 20rem;
  opacity: 0.14;
}

.ctt-control-page__orb--bottom {
  bottom: 0;
  left: 30%;
  width: 17rem;
  height: 17rem;
  opacity: 0.08;
}

.ctt-control-page__container {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.ctt-control-header {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px);
  padding: 0.8rem 1rem;
}

.dark .ctt-control-header {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(17, 17, 24, 0.84);
}

.ctt-control-header__row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ctt-control-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.ctt-control-brand__mark {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.85rem;
  background-image: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.2);
  color: #ffffff;
}

.ctt-control-brand__meta {
  min-width: 0;
}

.ctt-control-brand__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.ctt-control-brand__link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.ctt-control-brand__link:hover {
  text-decoration: none;
}

.ctt-control-badge {
  display: none;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand-purple);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ctt-control-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ctt-control-nav,
.ctt-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ctt-control-nav-link,
.ctt-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.ctt-control-nav-link {
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted-foreground);
}

.ctt-control-nav-link:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  text-decoration: none;
}

.ctt-control-nav-link--active {
  background: var(--foreground);
  color: var(--background);
}

.ctt-control-nav-link--active:hover {
  color: var(--background);
}

.ctt-control-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--foreground);
  cursor: pointer;
}

.ctt-control-button:hover {
  background: var(--accent);
  text-decoration: none;
}

.ctt-control-button--primary {
  border-color: transparent;
  background-image: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.22);
}

.ctt-control-button--primary:hover {
  opacity: 0.96;
  color: #ffffff;
  background-image: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
}

.ctt-control-button--accent {
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand-purple);
}

.ctt-control-button--accent:hover {
  background: var(--brand-purple);
  color: #ffffff;
}

/* Keep masthead controls visually aligned with the lighter public header actions. */
.ctt-control-header .ctt-control-nav,
.ctt-control-header .ctt-control-actions {
  gap: 0.4rem;
}

.ctt-control-header .ctt-control-nav-link,
.ctt-control-header .ctt-control-button {
  min-height: 1.95rem;
  padding: 0.38rem 0.72rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.36);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
}

.ctt-control-header .ctt-control-nav-link {
  color: var(--muted-foreground);
}

.ctt-control-header .ctt-control-nav-link:hover,
.ctt-control-header .ctt-control-button:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.ctt-control-header .ctt-control-nav-link--active {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.1);
  color: var(--foreground);
}

.ctt-control-header .ctt-control-nav-link--active:hover {
  background: rgba(59, 130, 246, 0.14);
  color: var(--foreground);
}

.dark .ctt-control-header .ctt-control-nav-link,
.dark .ctt-control-header .ctt-control-button {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.44);
}

.ctt-control-header .ctt-control-button--primary,
.ctt-control-header .ctt-control-button--accent {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.12);
  color: var(--foreground);
}

.ctt-control-header .ctt-control-button--primary:hover,
.ctt-control-header .ctt-control-button--accent:hover {
  background: rgba(59, 130, 246, 0.18);
  color: var(--foreground);
}

.ctt-control-actions form {
  margin: 0;
}

.ctt-control-main {
  padding-top: 2rem;
}

.ctt-control-main-grid {
  display: grid;
  gap: 1.5rem;
}

.ctt-control-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
}

.dark .ctt-control-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(17, 17, 24, 0.88);
}

.ctt-control-panel--highlight {
  border-color: rgba(255, 255, 255, 0.12);
  background-image: linear-gradient(135deg, var(--brand-blue), var(--brand-purple), var(--brand-blue));
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(76, 29, 149, 0.28);
}

.ctt-control-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand-purple);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.ctt-control-title {
  margin: 1.25rem 0 0;
  max-width: 14ch;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.ctt-control-copy {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--muted-foreground);
}

.ctt-control-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ctt-control-stat-grid,
.ctt-control-link-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.ctt-control-card,
.ctt-control-step {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dark .ctt-control-card,
.dark .ctt-control-step {
  background: rgba(10, 10, 15, 0.62);
}

.ctt-control-card__eyebrow,
.ctt-control-link-grid a,
.ctt-control-step__number {
  font-weight: 700;
}

.ctt-control-card__eyebrow,
.ctt-control-step__number,
.ctt-control-panel__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ctt-control-card__eyebrow,
.ctt-control-panel__eyebrow {
  color: var(--muted-foreground);
}

.ctt-control-card__title,
.ctt-control-step__title,
.ctt-control-panel__title {
  margin: 0.65rem 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.ctt-control-card__copy,
.ctt-control-step__copy,
.ctt-control-panel__copy,
.ctt-control-hint {
  margin: 0.45rem 0 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.ctt-control-sidebar {
  display: grid;
  gap: 1rem;
}

.ctt-control-step-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ctt-control-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ctt-control-step__number {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 1rem;
  background: rgba(124, 58, 237, 0.1);
  color: var(--brand-purple);
}

.ctt-control-step__number--blue {
  background: rgba(26, 54, 93, 0.1);
  color: var(--brand-blue);
}

.ctt-control-step__number--green {
  background: rgba(5, 150, 105, 0.12);
  color: var(--brand-green);
}

.ctt-control-link-grid a {
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.95rem 1rem;
  color: #ffffff;
  text-decoration: none;
}

.ctt-control-link-grid a:hover {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.ctt-onboarding-layout {
  display: grid;
  gap: 1.5rem;
}

.ctt-onboarding-page {
  background: var(--background);
}

.ctt-onboarding-page .ctt-control-page__container {
  width: min(920px, calc(100% - 2rem));
}

.ctt-onboarding-page .ctt-control-header {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
}

.dark .ctt-onboarding-page .ctt-control-header {
  background: rgba(17, 17, 24, 0.96);
}

.ctt-onboarding-page .ctt-control-panel {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
}

.dark .ctt-onboarding-page .ctt-control-panel {
  background: rgba(17, 17, 24, 0.96);
}

.ctt-onboarding-page .ctt-control-main {
  padding-top: 1.5rem;
}

.ctt-onboarding-page .ctt-control-button--primary {
  background: var(--foreground);
  box-shadow: none;
}

.ctt-onboarding-page .ctt-control-button--primary:hover {
  background: color-mix(in srgb, var(--foreground) 90%, white);
}

.dark .ctt-onboarding-page .ctt-control-button--primary {
  background: #f3f4f6;
  color: #0a0a0f;
}

.dark .ctt-onboarding-page .ctt-control-button--primary:hover {
  background: #ffffff;
  color: #0a0a0f;
}

.ctt-onboarding-intro__title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ctt-onboarding-intro__copy {
  margin: 0.5rem 0 0;
  max-width: 44rem;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.ctt-onboarding-meta {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.ctt-onboarding-meta__item {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--background);
  padding: 0.85rem 1rem;
}

.ctt-onboarding-meta__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.ctt-onboarding-meta__value {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--foreground);
}

.ctt-onboarding-shell {
  display: grid;
  gap: 1.5rem;
}

.ctt-onboarding-section-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.ctt-onboarding-section-copy {
  margin: 0.35rem 0 0;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.ctt-onboarding-sidebar {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.ctt-form-stack {
  display: grid;
  gap: 1.5rem;
}

.ctt-form-section__header {
  margin-bottom: 1.25rem;
}

.ctt-form-section__eyebrow {
  margin: 0;
  color: var(--brand-purple);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ctt-form-section__title {
  margin: 0.5rem 0 0;
  font-size: 1.6rem;
  line-height: 1.25;
}

.ctt-field-grid {
  display: grid;
  gap: 1rem;
}

.ctt-field {
  display: block;
}

.ctt-field__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.ctt-field__input,
.ctt-field__select,
.ctt-field__textarea {
  width: 100%;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--foreground);
  padding: 0.85rem 1rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.dark .ctt-field__input,
.dark .ctt-field__select,
.dark .ctt-field__textarea {
  background: rgba(10, 10, 15, 0.72);
}

.ctt-field__input:focus,
.ctt-field__select:focus,
.ctt-field__textarea:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.ctt-field__textarea {
  min-height: 7rem;
  resize: vertical;
}

.ctt-field__hint {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.ctt-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ctt-icon-button {
  width: 3rem;
  height: 3rem;
  padding: 0;
}

.ctt-icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ctt-status-grid {
  display: grid;
  gap: 1rem;
}

.ctt-status-panel {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.95rem 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  font-size: 0.95rem;
}

.dark .ctt-status-panel {
  background: rgba(10, 10, 15, 0.68);
}

.ctt-status-panel[data-state="ok"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.ctt-status-panel[data-state="error"] {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.dark .ctt-status-panel[data-state="ok"] {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(5, 46, 22, 0.55);
  color: #86efac;
}

.dark .ctt-status-panel[data-state="error"] {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(69, 10, 10, 0.55);
  color: #fca5a5;
}

.ctt-response-panel {
  overflow: hidden;
}

.ctt-response-panel summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.ctt-response-panel pre {
  margin: 0;
  max-height: 20rem;
  overflow: auto;
  border-top: 1px solid var(--border);
  background: #020617;
  color: #e2e8f0;
  padding: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .ctt-control-page__container {
    width: min(1120px, calc(100% - 3rem));
    padding-top: 1.5rem;
  }

  .ctt-onboarding-page .ctt-control-page__container {
    width: min(920px, calc(100% - 3rem));
  }

  .ctt-control-badge {
    display: inline-flex;
    align-items: center;
  }

  .ctt-control-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ctt-onboarding-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .ctt-field-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ctt-control-header__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ctt-control-header__actions {
    align-items: center;
  }

  .ctt-control-main-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  }

  .ctt-onboarding-layout {
    grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  }

  .ctt-onboarding-sidebar {
    position: sticky;
    top: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .ctt-status-grid {
    grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
  }
}
