﻿@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap");

:root {
  --bg-1: #f7f3fb;
  --bg-2: #f1ecf9;
  --ink: #1f1f1b;
  --muted: #6b665f;
  --accent: #443877;
  --accent-2: #7d6eb0;
  --accent-3: #ffd4da;
  --card: #ffffff;
  --line: #e3ded6;
  --shadow: 0 16px 50px rgba(31, 31, 27, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 800px at 10% 10%, #f7f1ff, transparent 60%),
              radial-gradient(1200px 800px at 90% 0%, #efe9ff, transparent 55%),
              linear-gradient(180deg, var(--bg-1), var(--bg-2));

  position: relative;
  min-height: 100vh;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* Brand pattern background (kept subtle for readability) */
  background-image:
    linear-gradient(180deg, rgba(247, 243, 251, 0.05), rgba(247, 243, 251, 0.72)),
    url("/assets/brand/Pattern-Sito.png");
  background-size: 100% 100%, cover;
  background-position: center, center top;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

body[data-enforce-section-lock] .app {
  height: 100vh;
  overflow: hidden;
  align-items: start;
  padding-bottom: 28px;
}

body[data-enforce-section-lock] main {
  min-height: 0;
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding-right: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

body[data-enforce-section-lock] main::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none;
  background: transparent;
}

.side {
  position: sticky;
  top: 24px;
  z-index: 5;
  height: fit-content;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

body[data-enforce-section-lock] .side {
  max-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side h1 {
  font-family: "Fraunces", serif;
  font-size: 22px;
  margin: 0 0 8px 0;
}

.side p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px 0;
}

.side nav {
  position: relative;
  padding-left: 18px;
  max-height: none;
  overflow: visible;
}

body[data-enforce-section-lock] .side nav {
  min-height: 0;
  flex: 1 1 auto;
  max-height: 100%;
  overflow: auto;
  padding-right: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  overscroll-behavior: contain;
}

body[data-enforce-section-lock] .side nav::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none;
  background: transparent;
}


.side nav::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(125, 110, 176, 0.22);
}


.side nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 6px;
  margin: 4px 0 4px 0;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  border: 1px solid transparent;
}

.side nav a:hover {
  background: #f6f4f0;
}

.side nav a.active {
  background: rgba(125, 110, 176, 0.14);
  border-color: rgba(125, 110, 176, 0.35);
}

.side nav a.locked {
  color: #b7b0a6;
}

.side nav a.kind-locked {
  color: #9c95ad;
  background: rgba(125, 110, 176, 0.06);
}

.side nav a.done .nav-indicator {
  background: var(--accent);
  border-color: var(--accent);
}

.side nav a.done .nav-badge {
  background: rgba(125, 110, 176, 0.2);
  color: var(--accent);
}

.nav-indicator {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #c9c3ba;
  background: #fff;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 212, 218, 0.6);
  color: #3d355b;
}

.side nav a.done .nav-indicator {
  background: var(--accent);
  border-color: var(--accent);
}

.side nav a.done .nav-badge {
  background: rgba(125, 110, 176, 0.2);
  color: var(--accent);
}

.side nav a.locked .nav-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 212, 218, 0.6);
  color: #3d355b;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;

  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(125, 110, 176, 0.25);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(31, 31, 27, 0.06);
  backdrop-filter: blur(6px);
}

.header h2 {
  font-size: 28px;
  margin: 0;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.badge {
  background: rgba(125, 110, 176, 0.18);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.form-progress {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.form-progress--side {
  margin: 16px 0 18px 0;
}

.form-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  gap: 12px;
}

.form-progress__title {
  font-weight: 600;
  color: var(--ink);
}

.form-progress__value {
  font-variant-numeric: tabular-nums;
}

.form-progress__track {
  height: 10px;
  background: rgba(255, 212, 218, 0.45);
  border-radius: 999px;
  overflow: hidden;
}

.form-progress__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 180ms ease;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  animation: fadeUp 420ms ease both;
  position: relative;
}

.card h3 {
  font-size: 18px;
  margin: 0 0 14px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.form-alert {
  background: rgba(255, 212, 218, 0.5);
  border: 1px solid rgba(125, 110, 176, 0.25);
  color: #4b3a7a;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #d27a7a;
  background: #fff7f7;
}

.error {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #b54848;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.color-field .color-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-field .color-inputs input[type="text"] {
  flex: 1;
}

.color-field .color-inputs input[type="color"] {
  width: 46px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.color-field .color-inputs input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-field .color-inputs input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #faf7f2;
  font-size: 12px;
}

button.pill {
  cursor: pointer;
}

.inline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

body[data-enforce-section-lock] .actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 14px 0 4px;
  background: linear-gradient(180deg, rgba(241, 236, 249, 0), rgba(241, 236, 249, 0.95) 35%);
}

button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(68, 56, 119, 0.25);
}
button.primary:hover {
  filter: brightness(1.03);
}

button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
}

a.secondary,
button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.secondary--compact {
  padding: 9px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

.secondary--admin {
  background: linear-gradient(135deg, rgba(68, 56, 119, 0.08), rgba(125, 110, 176, 0.12));
  border-color: rgba(68, 56, 119, 0.18);
}

a.primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(68, 56, 119, 0.25);
}

.note {
  font-size: 12px;
  color: var(--muted);
}

.footer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  gap: 10px;
}

.section-confirm {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(68, 56, 119, 0.22);
}

.section-confirm:disabled {
  background: #9aa1ac;
  cursor: not-allowed;
}

.section-edit {
  background: linear-gradient(135deg, rgba(125, 110, 176, 0.18), rgba(255, 212, 218, 0.55));
  color: #443877;
  border: 1px solid rgba(125, 110, 176, 0.35);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.section-edit:disabled {
  color: #9a8fb5;
  border-color: rgba(125, 110, 176, 0.2);
  cursor: not-allowed;
  background: rgba(125, 110, 176, 0.08);
}

.section-alert {
  margin: 0;
  font-size: 12px;
  color: #b54848;
}

.section-locked {
  opacity: 0.6;
  pointer-events: none;
  opacity: 1;
}

.section-locked::after {
  content: attr(data-lock-message);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #3d355b;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
}

.section-kind-locked::after {
  content: attr(data-lock-message);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: #4a3f72;
  background: rgba(247, 243, 251, 0.78);
  border: 1px dashed rgba(125, 110, 176, 0.28);
  border-radius: 20px;
}

.field-locked {
  opacity: 0.75;
}

.field-kind-locked {
  opacity: 0.7;
}

.field-locked input,
.field-locked textarea,
.field-locked select {
  pointer-events: none;
  opacity: 1;
  background: #f7f3ee;
  color: #3d355b;
}

.field-kind-locked input,
.field-kind-locked textarea,
.field-kind-locked select {
  background: #f5f2fb;
  color: #6e6689;
}

.field-complete input,
.field-complete textarea,
.field-complete select {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(125, 110, 176, 0.28);
}

.check-row.field-complete,
.pill.field-complete {
  border: 1px solid rgba(125, 110, 176, 0.5);
  background: rgba(125, 110, 176, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
}

.field-locked .pill {
  pointer-events: none;
  opacity: 1;
  opacity: 0.8;
}

@media (max-width: 1100px) {
  .app {
    position: relative;
    z-index: 1;
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
  }
  body[data-enforce-section-lock] .app {
    height: auto;
    overflow: visible;
  }
  body[data-enforce-section-lock] main {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  body[data-enforce-section-lock] .side {
    max-height: none;
  }
  body[data-enforce-section-lock] .side nav {
    max-height: 280px;
  }
}

@media (max-width: 900px) {
  .grid, .grid-2 {
    grid-template-columns: 1fr;
  }
  .header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .header-actions {
    width: 100%;
  }
  .header-actions > * {
    width: 100%;
  }
  .header-actions .logout-form {
    width: 100%;
  }
  .header-actions .logout-form button,
  .header-actions a,
  .header-actions button {
    width: 100%;
  }
  .actions {
    justify-content: stretch;
  }
  .actions .primary {
    width: 100%;
  }
  .modal-filters,
  .modal-filters--triple {
    grid-template-columns: 1fr;
  }
  .modal-item__detail {
    flex-direction: column;
    gap: 6px;
  }
  .dashboard-action {
    min-height: auto;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-alert--error {
  background: rgba(255, 212, 218, 0.7);
  border: 1px solid rgba(125, 110, 176, 0.35);
  color: #5a2f3a;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.icon-button {
  border: none;
  background: #f3efe9;
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
}

.modal-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-search input {
  flex: 1;
}

.modal-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal-filters--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.modal-status {
  min-height: 16px;
  font-size: 12px;
  color: #b54848;
}

.modal-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.modal-item {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-item:hover {
  border-color: rgba(125, 110, 176, 0.35);
  background: #f5fbfa;
}

.modal-item__title {
  font-weight: 600;
}

.modal-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}

.modal-item__detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: #5b5471;
}

.modal-tag {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e0d9d1;
  background: #f8f4ef;
  font-size: 11px;
  color: var(--ink);
}

.modal-empty {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.pipeline-view-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pipeline-view-switch .secondary.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-color: transparent;
}

.pipeline-table-wrap {
  margin-top: 10px;
}

.pipeline-table-scroller {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.pipeline-table {
  width: 100%;
  min-width: 1350px;
  border-collapse: collapse;
  font-size: 13px;
}

.pipeline-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #faf8fd, #f3eefb);
  color: var(--accent);
  font-weight: 700;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.pipeline-table tbody td {
  padding: 8px;
  border-bottom: 1px solid #eee7f7;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.86);
}

.pipeline-table tbody tr:hover td {
  background: #faf8fd;
}

.pipeline-table__meta {
  min-width: 110px;
  white-space: nowrap;
}

.pipeline-table__cell-input {
  width: 100%;
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.pipeline-table__cell-input:focus {
  outline: none;
  border-color: rgba(125, 110, 176, 0.6);
  box-shadow: 0 0 0 3px rgba(125, 110, 176, 0.12);
}

.pipeline-table__cell-input.is-dirty {
  border-color: rgba(255, 160, 67, 0.9);
  background: #fffaf1;
}

.pipeline-table__cell-input.is-saving {
  border-color: rgba(125, 110, 176, 0.75);
  background: #f6f1ff;
}

.pipeline-table__cell-input.is-error {
  border-color: rgba(181, 72, 72, 0.9);
  background: #fff2f2;
}

.pipeline-table__actions {
  min-width: 180px;
}

.pipeline-table__actions-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pipeline-table__actions-wrap button {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.1;
}

.pipeline-table textarea.pipeline-table__cell-input {
  min-height: 86px;
  resize: vertical;
}

.pipeline-table__row-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.35;
}

.dashboard-header {
  margin-bottom: 22px;
}

.dashboard-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.dashboard-brand img {
  width: min(100%, 280px);
  height: auto;
}

.dashboard-title-wrap {
  text-align: center;
  margin-bottom: 26px;
}

.dashboard-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  color: #211c36;
}

.dashboard-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.dashboard-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.dashboard-section {
  border: 1px solid rgba(125, 110, 176, 0.18);
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 244, 255, 0.92));
}

.dashboard-section__head {
  margin-bottom: 16px;
}

.dashboard-section__head h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #241e3e;
}

.dashboard-section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-actions {
  display: grid;
  gap: 14px;
}

.pipelines-upload-action .primary {
  width: 100%;
}

.admin-users-card {
  background: rgba(255, 255, 255, 0.94);
}

.admin-users-form .actions {
  margin-top: 18px;
}

.admin-users-note {
  margin-top: 6px;
}

.admin-users-list {
  display: grid;
  gap: 12px;
}

.admin-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(125, 110, 176, 0.18);
  background: linear-gradient(180deg, rgba(250, 248, 253, 0.98), rgba(244, 239, 251, 0.88));
}

.admin-user-item__title {
  margin-bottom: 4px;
  font-weight: 700;
  color: #241e3e;
  word-break: break-word;
}

.dashboard-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 142px;
  padding: 22px 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(125, 110, 176, 0.2);
  background: linear-gradient(135deg, rgba(68, 56, 119, 0.96), rgba(125, 110, 176, 0.9));
  box-shadow: 0 18px 34px rgba(68, 56, 119, 0.18);
  color: #fff;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid rgba(125, 110, 176, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.dashboard-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(68, 56, 119, 0.22);
  filter: brightness(1.03);
}

.dashboard-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.dashboard-action__icon::before,
.dashboard-action__icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.dashboard-action__icon--campaign::before {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    12px -4px 0 -2px rgba(255, 255, 255, 0.82),
    -8px 10px 0 -1px rgba(255, 255, 255, 0.72);
}

.dashboard-action__icon--pipeline::before {
  width: 20px;
  height: 18px;
  left: 14px;
  top: 16px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-top: none;
  border-radius: 0 0 7px 7px;
}

.dashboard-action__icon--pipeline::after {
  width: 10px;
  height: 10px;
  left: 19px;
  top: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.92);
  border-top: 2px solid rgba(255, 255, 255, 0.92);
  transform: rotate(45deg);
}

.dashboard-action__icon--list::before {
  width: 8px;
  height: 8px;
  left: 14px;
  top: 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  box-shadow:
    12px 0 0 0 rgba(255, 255, 255, 0.82),
    0 12px 0 0 rgba(255, 255, 255, 0.82),
    12px 12px 0 0 rgba(255, 255, 255, 0.7);
}

.dashboard-action__icon--accounting::before {
  width: 22px;
  height: 22px;
  left: 13px;
  top: 13px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.dashboard-action__icon--accounting::after {
  width: 10px;
  height: 2px;
  left: 19px;
  top: 23px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -7px 0 0 rgba(255, 255, 255, 0.9);
}

.dashboard-action__icon--create::before {
  width: 18px;
  height: 2px;
  left: 15px;
  top: 23px;
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-action__icon--create::after {
  width: 2px;
  height: 18px;
  left: 23px;
  top: 15px;
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-action__icon--open::before {
  width: 22px;
  height: 14px;
  left: 13px;
  top: 20px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
}

.dashboard-action__icon--open::after {
  width: 14px;
  height: 8px;
  left: 15px;
  top: 13px;
  border-radius: 4px 4px 0 0;
  background: rgba(255, 255, 255, 0.82);
}

.dashboard-action__icon--active::before {
  width: 20px;
  height: 20px;
  left: 14px;
  top: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.dashboard-action__icon--active::after {
  width: 12px;
  height: 7px;
  left: 18px;
  top: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(255, 255, 255, 0.92);
  transform: rotate(-45deg);
}

.dashboard-action__title {
  font-size: 26px;
  line-height: 1.04;
  font-weight: 700;
}

.dashboard-action__meta {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.section-intro {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(125, 110, 176, 0.08);
  border: 1px solid rgba(125, 110, 176, 0.2);
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.accounting-summary-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 243, 251, 0.96));
  border-color: rgba(125, 110, 176, 0.24);
}

.accounting-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.accounting-summary-kicker {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.accounting-summary-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.05;
  color: #241e3e;
}

.accounting-summary-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.accounting-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.accounting-summary-grid {
  gap: 12px;
}

.accounting-summary-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(125, 110, 176, 0.16);
  background: rgba(255, 255, 255, 0.84);
}

.accounting-summary-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.accounting-summary-item strong {
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
  word-break: break-word;
}

.accounting-summary-detail {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  word-break: break-word;
}

.dashboard-action--placeholder {
  opacity: 0.68;
  cursor: not-allowed;
  filter: saturate(0.7);
}

.dashboard-action--placeholder:hover {
  transform: none;
  box-shadow: 0 18px 34px rgba(68, 56, 119, 0.18);
  filter: saturate(0.7);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .app {
    padding-left: 12px;
    padding-right: 12px;
  }
  .grid,
  .grid-2,
  .grid-1 {
    grid-template-columns: 1fr !important;
  }
  .field,
  .card,
  section.card {
    min-width: 0;
  }
  input[type="date"],
  input[type="datetime-local"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
  }
  .dashboard-page .app {
    padding: 16px 14px 32px;
  }
  .dashboard-page .header {
    padding: 16px;
    border-radius: 18px;
  }
  .dashboard-page .header h2 {
    font-size: 26px;
  }
  .dashboard-page .header-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dashboard-page .header-actions > *,
  .dashboard-page .header-actions .logout-form,
  .dashboard-page .header-actions .logout-form button,
  .dashboard-page .header-actions a,
  .dashboard-page .header-actions button {
    width: 100%;
  }
  .dashboard-page .secondary--admin {
    justify-content: center;
  }
  .dashboard-page .dashboard-section {
    padding: 18px;
    border-radius: 18px;
  }
  .dashboard-page .dashboard-section__head h3 {
    font-size: 22px;
  }
  .dashboard-page .dashboard-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .accounting-summary-head {
    flex-direction: column;
  }
  .accounting-summary-tags {
    justify-content: flex-start;
  }
  .accounting-summary-head h3 {
    font-size: 21px;
  }
  .accounting-summary-item {
    padding: 12px 14px;
  }
  .modal-search {
    flex-direction: column;
    align-items: stretch;
  }
  .modal-filters {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 12px;
  }
  .modal-card {
    width: calc(100vw - 24px);
    max-width: none;
    padding: 18px 16px;
    border-radius: 22px;
    max-height: 90vh;
    overflow: auto;
  }
  .modal-header {
    align-items: flex-start;
  }
  .modal-header h3 {
    font-size: 18px;
    line-height: 1.2;
  }
  .modal-subtitle {
    font-size: 12px;
    line-height: 1.45;
  }
  .pipelines-upload-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .pipelines-upload-action {
    align-items: stretch !important;
  }
  [data-pipelines-modal] .pipelines-browser-section {
    display: none;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .dashboard-card {
    padding: 18px;
  }
  .dashboard-action {
    min-height: auto;
    padding: 18px 18px 16px;
  }
  .dashboard-action__title {
    font-size: 20px;
  }
  .dashboard-action__meta {
    font-size: 12px;
  }
  .dashboard-action__icon {
    width: 44px;
    height: 44px;
  }
  .card {
    padding: 18px;
    border-radius: 18px;
  }
  .side {
    padding: 16px;
  }
  .side nav a {
    padding: 10px 10px 10px 6px;
  }
  .admin-user-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Login */.login-form,.login-form .grid-1,.login-form .field {  width: 100%;}.login-form input,.login-form input[type="password"] {  width: 100% !important;}.login-page .brand {  display: flex;  align-items: center;  justify-content: center;  margin: 0 0 16px 0;}.login-page .brand img {  width: 100%;  max-width: 260px;  height: auto;}.login-page .card {  text-align: center;}.login-page .card .field {  text-align: left;}



.nav-active {
  position: absolute;
  left: 8px;
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: top 200ms ease, height 200ms ease;
}


