:root {
  --bg: #edf2f7;
  --bg-soft: rgba(255, 255, 255, 0.74);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(8, 15, 28, 0.9);
  --line: #d8e0ea;
  --line-strong: #b8c5d6;
  --text: #172033;
  --muted: #5f6c80;
  --muted-soft: #8ea0b8;
  --shadow: 0 24px 70px -38px rgba(15, 23, 42, 0.5);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --architecture: #f59e0b;
  --structure: #0ea5e9;
  --electrical: #8b5cf6;
  --hydraulic: #10b981;
  --ac: #f43f5e;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.1), transparent 22%),
    linear-gradient(180deg, #f4f7fb 0%, var(--bg) 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  max-width: 1720px;
  margin: 0 auto;
  padding: 18px;
}

.app-topbar,
.security-banner {
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.app-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.68);
}

.app-topbar h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.05em;
}

.app-brand-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.access-switcher {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
}

.access-chip {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.access-chip:hover,
.access-chip:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.access-chip.is-active {
  background: linear-gradient(145deg, rgba(8, 15, 28, 0.94), rgba(15, 23, 42, 0.9));
  color: #fff;
  box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.72);
}

.session-box {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.session-label {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.security-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.72)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 34%);
}

.security-banner-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.security-banner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.top-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.top-tabs-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.top-tabs-auth-button {
  min-height: 42px;
  padding-inline: 18px;
}

.top-tab-button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.top-tab-button:hover,
.top-tab-button:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

.top-tab-button.is-active {
  background: linear-gradient(145deg, rgba(8, 15, 28, 0.94), rgba(15, 23, 42, 0.9));
  color: #fff;
  box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.72);
}

.tab-panel {
  display: grid;
  gap: 18px;
}

.tab-panel[hidden] {
  display: none !important;
}

.hero-panel,
.board-panel,
.modal {
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(8, 15, 28, 0.92), rgba(15, 23, 42, 0.86));
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.46;
  background-image:
    linear-gradient(
      to left,
      rgba(56, 189, 248, 0.04) 0%,
      rgba(15, 23, 42, 0.18) 22%,
      rgba(15, 23, 42, 0.56) 48%,
      rgba(15, 23, 42, 0.9) 72%,
      rgba(15, 23, 42, 0.98) 100%
    ),
    var(--hero-illustration);
  background-repeat: no-repeat, no-repeat;
  background-position: center, right center;
  background-size: cover, min(42vw, 440px) auto;
}

.board-hero {
  --hero-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 320' fill='none'%3E%3Cg stroke='%23d9f3ff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='246' y='36' width='148' height='58' rx='18'/%3E%3Crect x='112' y='138' width='138' height='56' rx='18'/%3E%3Crect x='286' y='142' width='150' height='56' rx='18'/%3E%3Crect x='200' y='234' width='164' height='54' rx='18'/%3E%3Cpath d='M319 94v32'/%3E%3Cpath d='M319 126H181v12'/%3E%3Cpath d='M319 126h42v16'/%3E%3Cpath d='M181 194v38h101'/%3E%3Cpath d='M361 198v34h-30'/%3E%3C/g%3E%3Cg fill='%2393c5fd'%3E%3Ccircle cx='319' cy='126' r='8'/%3E%3Ccircle cx='181' cy='138' r='8'/%3E%3Ccircle cx='361' cy='142' r='8'/%3E%3Ccircle cx='282' cy='232' r='8'/%3E%3C/g%3E%3C/svg%3E");
}

.checkpoint-hero {
  --hero-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 320' fill='none'%3E%3Cg stroke='%23d9f3ff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='206' y='34' width='182' height='252' rx='26'/%3E%3Cpath d='M246 34h102v34H246z'/%3E%3Cpath d='M246 112h100'/%3E%3Cpath d='M246 156h100'/%3E%3Cpath d='M246 200h100'/%3E%3Cpath d='M246 244h76'/%3E%3Cpath d='m224 107 10 10 18-22'/%3E%3Cpath d='m224 151 10 10 18-22'/%3E%3Cpath d='m224 195 10 10 18-22'/%3E%3C/g%3E%3Cg fill='%2393c5fd'%3E%3Ccircle cx='233' cy='106' r='7'/%3E%3Ccircle cx='233' cy='150' r='7'/%3E%3Ccircle cx='233' cy='194' r='7'/%3E%3C/g%3E%3C/svg%3E");
}

.governance-hero {
  --hero-illustration: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 320' fill='none'%3E%3Cg stroke='%23d9f3ff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M300 46l92 34v68c0 58-40 108-92 126-52-18-92-68-92-126V80z'/%3E%3Cpath d='m272 156 18 18 42-48'/%3E%3Cpath d='M180 88h58'/%3E%3Cpath d='M160 134h60'/%3E%3Cpath d='M148 180h72'/%3E%3Cpath d='M360 214h42'/%3E%3Cpath d='M362 248h56'/%3E%3C/g%3E%3Cg fill='%2393c5fd'%3E%3Ccircle cx='220' cy='88' r='7'/%3E%3Ccircle cx='202' cy='134' r='7'/%3E%3Ccircle cx='190' cy='180' r='7'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-copy {
  max-width: 840px;
  display: grid;
  gap: 4px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #93c5fd;
}

.eyebrow-light {
  color: var(--muted-soft);
}

.hero-panel h1,
.hero-panel h2,
.board-heading h2,
.modal h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero-panel h1,
.hero-panel h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.05;
}

.hero-text,
.modal-help,
.board-help {
  margin: 0;
  line-height: 1.6;
}

.hero-text {
  margin-top: 0;
  max-width: 720px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.toolbar {
  display: grid;
  gap: 12px;
}

.column-visibility-panel {
  display: grid;
  gap: 10px;
}

.toolbar-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.column-visibility-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.74);
}

.column-visibility-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 520px;
}

.discipline-filter-box {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.discipline-filter-label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.74);
  white-space: nowrap;
}

.discipline-filter-box select {
  min-width: 220px;
  min-height: 38px;
  padding: 0 38px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 15, 28, 0.34);
  color: #fff;
  outline: none;
  appearance: none;
}

.discipline-filter-box select:focus {
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.filter-button {
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    box-shadow 0.18s ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.filter-button.active {
  box-shadow: 0 14px 28px -20px rgba(15, 23, 42, 0.7);
}

.visibility-button {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.visibility-button:hover,
.visibility-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.visibility-button.is-hidden {
  opacity: 0.58;
  background: rgba(15, 23, 42, 0.16);
}

.filter-all {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.board-panel {
  min-width: 0;
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
}

.governance-hero {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(8, 15, 28, 0.96), rgba(30, 41, 59, 0.9));
}

.board-gate {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.48);
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.74)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 32%);
}

.board-gate h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.board-gate p {
  margin: 0 0 16px;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.55;
}

.tab-panel > .board-panel:first-child,
.tab-panel > .hero-panel:first-child {
  margin-top: 0;
}

.placeholder-panel {
  min-height: 340px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.14), transparent 28%);
}

.placeholder-copy {
  max-width: 680px;
  text-align: center;
}

.placeholder-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.05em;
}

.placeholder-help {
  max-width: 560px;
  margin: 14px auto 0;
  text-align: center;
}

.checkpoint-hero {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 30%),
    linear-gradient(145deg, rgba(8, 15, 28, 0.94), rgba(15, 23, 42, 0.86));
}

.checkpoint-shell {
  padding: 24px;
}

.checkpoint-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.checkpoint-block {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 34%);
  box-shadow: 0 18px 48px -34px rgba(15, 23, 42, 0.48);
}

.checkpoint-archived-block {
  background:
    linear-gradient(160deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.74)),
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.12), transparent 34%);
}

.checkpoint-block-header,
.checkpoint-block-header-archived,
.checkpoint-header-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.checkpoint-block-header h2 {
  font-size: 28px;
}

.checkpoint-list {
  display: grid;
  gap: 12px;
}

.checkpoint-toolbar {
  display: grid;
  gap: 12px;
}

.checkpoint-ai-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(224, 242, 254, 0.82)),
    radial-gradient(circle at right top, rgba(14, 165, 233, 0.14), transparent 36%);
}

.checkpoint-ai-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #075985;
}

.checkpoint-ai-help {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkpoint-configure-ai-button {
  white-space: nowrap;
}

.checkpoint-feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.5;
}

.checkpoint-feedback.is-success {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(236, 253, 245, 0.96);
  color: #065f46;
}

.checkpoint-feedback.is-error {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(254, 242, 242, 0.98);
  color: #991b1b;
}

.checkpoint-item,
.checkpoint-empty {
  border-radius: 22px;
  border: 1px solid rgba(216, 224, 234, 0.92);
  background: rgba(255, 255, 255, 0.76);
}

.checkpoint-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
}

.checkpoint-item-main {
  display: grid;
  gap: 14px;
}

.checkpoint-pauta-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.checkpoint-pauta-header-main,
.checkpoint-topic-header-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.checkpoint-pauta-header-main {
  flex: 1 1 auto;
}

.checkpoint-pauta-meta {
  flex: 0 0 auto;
}

.checkpoint-pauta-title {
  margin: 8px 0 0;
  font-size: 20px;
}

.checkpoint-pauta-title-input {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: normal;
}

.checkpoint-pauta-title-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.checkpoint-pauta-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  text-align: right;
}

.checkpoint-pauta-author {
  font-size: 11px;
  color: var(--muted-soft);
}

.checkpoint-pauta-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.checkpoint-pauta-meta-copy {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.checkpoint-topic-list {
  display: grid;
  gap: 12px;
}

.checkpoint-topic {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  padding-right: 58px;
  border-radius: 20px;
  border: 1px solid rgba(216, 224, 234, 0.9);
  background: rgba(248, 250, 252, 0.92);
}

.checkpoint-topic.is-latest-validated {
  border-left: 6px solid #0f766e;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.98), rgba(248, 250, 252, 0.96)),
    rgba(248, 250, 252, 0.92);
  box-shadow: 0 18px 32px -24px rgba(15, 118, 110, 0.48);
}

.checkpoint-topic-body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.checkpoint-topic-side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.checkpoint-topic-content {
  min-width: 0;
}

.checkpoint-topic-date-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.checkpoint-topic-date-input {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.checkpoint-topic-date-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.checkpoint-topic-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.checkpoint-topic-status {
  color: var(--muted);
  font-size: 13px;
}

.checkpoint-topic-order {
  color: #0f766e;
}

.checkpoint-pauta-actions {
  align-content: start;
}

.checkpoint-empty {
  padding: 32px 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(248, 250, 252, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.checkpoint-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
}

.checkpoint-date-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.checkpoint-topic-author {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.checkpoint-textarea {
  width: 100%;
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  resize: vertical;
  background: rgba(248, 250, 252, 0.94);
  color: var(--text);
  line-height: 1.55;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.checkpoint-textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
  background: #fff;
}

.checkpoint-topic-textarea {
  min-height: 124px;
  height: 100%;
}

.checkpoint-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-self: end;
  margin-top: 4px;
}

.checkpoint-delete-affordance {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 999px;
  background: #fff5f5;
  color: #991b1b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.checkpoint-delete-affordance:hover,
.checkpoint-delete-affordance:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.36);
  background: #fee2e2;
}

.checkpoint-delete-affordance:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  background: rgba(255, 245, 245, 0.84);
}

.checkpoint-action-button {
  min-width: 112px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.checkpoint-action-button:hover,
.checkpoint-action-button:focus-visible,
.checkpoint-toggle-button:hover,
.checkpoint-toggle-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  color: var(--text);
}

.checkpoint-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.checkpoint-action-button.is-archive {
  color: #92400e;
  background: #fff7ed;
  border-color: rgba(245, 158, 11, 0.22);
}

.checkpoint-action-button.is-restore {
  color: #075985;
  background: #f0f9ff;
  border-color: rgba(14, 165, 233, 0.22);
}

.checkpoint-action-button.is-ai {
  color: #4338ca;
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.2);
}

.checkpoint-action-button.is-add-topic {
  color: #0f766e;
  background: #ecfeff;
  border-color: rgba(13, 148, 136, 0.2);
}

.checkpoint-action-button.is-delete-pauta {
  color: #991b1b;
  background: #fff1f2;
  border-color: rgba(244, 63, 94, 0.2);
}

.checkpoint-add-button,
.checkpoint-toggle-button {
  min-height: 46px;
}

.checkpoint-archived-content {
  display: grid;
  gap: 12px;
}

.checkpoint-archived-block.is-collapsed .checkpoint-archived-content {
  display: none;
}

.checkpoint-archived-text {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.94);
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.board-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.board-heading h2 {
  font-size: 28px;
}

.board-help {
  max-width: 420px;
  color: var(--muted);
  text-align: right;
}

.board-columns-shell {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}

.board-columns {
  display: flex;
  gap: 16px;
  width: max-content;
  min-width: 100%;
}

.column {
  width: 326px;
  min-width: 326px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: var(--panel);
  box-shadow: 0 18px 48px -34px rgba(15, 23, 42, 0.58);
}

.column-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.column-header h3 {
  margin: 6px 0 4px;
  font-size: 17px;
}

.column-header p,
.column-empty {
  margin: 0;
  color: var(--muted);
}

.column-counter {
  min-width: 44px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 18px;
  background: #e8eef5;
  font-weight: 800;
}

.column-body {
  min-height: 260px;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 4px;
  border-radius: 22px;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.column-body.drag-over {
  background: rgba(14, 165, 233, 0.12);
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.22);
}

.column-empty {
  min-height: 212px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px 20px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.7);
}

.column-empty p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 160px;
  line-height: 1.5;
}

.card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-left: 5px solid var(--discipline-color, #94a3b8);
  border-radius: 24px;
  background: var(--discipline-bg, rgba(255, 255, 255, 0.9));
  box-shadow: 0 16px 36px -30px rgba(15, 23, 42, 0.62);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.52);
}

.card.dragging {
  opacity: 0.45;
  transform: rotate(1deg);
}

.card.is-readonly {
  cursor: default;
}

.card.is-readonly:hover {
  transform: none;
  box-shadow: 0 16px 36px -30px rgba(15, 23, 42, 0.62);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.card-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.icon-button,
.ghost-icon-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.icon-button:hover,
.ghost-icon-button:hover,
.icon-button:focus-visible,
.ghost-icon-button:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
}

.delete-button {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.16);
  background: rgba(254, 242, 242, 0.82);
}

.delete-button:hover,
.delete-button:focus-visible {
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.32);
}

.ghost-icon-button {
  cursor: grab;
}

.ghost-icon-button:active {
  cursor: grabbing;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-footer {
  display: grid;
  gap: 10px;
}

.card-publication-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.card-publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge.is-internal {
  background: rgba(226, 232, 240, 0.88);
  color: #334155;
}

.status-badge.is-review {
  background: rgba(255, 237, 213, 0.96);
  color: #9a3412;
}

.status-badge.is-published {
  background: rgba(220, 252, 231, 0.96);
  color: #166534;
}

.status-badge.is-pending {
  background: rgba(254, 240, 138, 0.92);
  color: #854d0e;
}

.status-badge.is-validated {
  background: rgba(220, 252, 231, 0.96);
  color: #166534;
}

.status-badge.is-blocked {
  background: rgba(254, 226, 226, 0.96);
  color: #991b1b;
}

.publication-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.publication-button.is-review {
  color: #9a3412;
  background: #ffedd5;
  border-color: rgba(249, 115, 22, 0.22);
}

.publication-button.is-publish {
  color: #166534;
  background: #dcfce7;
  border-color: rgba(34, 197, 94, 0.22);
}

.publication-button.is-unpublish {
  color: #991b1b;
  background: #fee2e2;
  border-color: rgba(239, 68, 68, 0.22);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pill-neutral {
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.pill-blocked {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.16);
}

.pill-discipline {
  background: var(--discipline-pill-bg, rgba(255, 255, 255, 0.75));
  color: var(--discipline-pill-text, #1f2937);
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.new-card-column-button,
.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 18px;
  font-weight: 800;
  border: 1px solid transparent;
}

.primary-button {
  background: #38bdf8;
  color: #07111f;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #7dd3fc;
}

.secondary-button {
  background: #fff;
  border-color: var(--line);
  color: var(--muted);
}

.header-button {
  min-width: 166px;
}

.new-card-column-button {
  background: rgba(248, 250, 252, 0.92);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

.new-card-column-button:hover,
.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: #94a3b8;
  color: var(--text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 15, 28, 0.58);
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
}

.modal-compact {
  width: min(560px, 100%);
}

.governance-shell {
  padding: 24px;
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.governance-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(216, 224, 234, 0.92);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.78)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 34%);
}

.governance-action-card {
  align-content: space-between;
}

.governance-action-copy,
.governance-inline-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.governance-action-footer,
.governance-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.governance-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.governance-card h3,
.governance-card h4 {
  margin: 0;
}

.governance-copy {
  display: grid;
  gap: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.governance-copy p {
  margin: 0;
}

.governance-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.governance-form {
  display: grid;
  gap: 16px;
}

.governance-modal-stack {
  display: grid;
  gap: 18px;
}

.governance-modal-section {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(216, 224, 234, 0.92);
  background: rgba(248, 250, 252, 0.72);
}

.governance-modal-section h3 {
  margin: 0;
}

.governance-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.governance-subtitle {
  margin-bottom: 10px;
  font-size: 15px;
}

.queue-list,
.classification-list,
.users-list,
.audit-log-list {
  display: grid;
  gap: 12px;
}

.queue-item,
.classification-item,
.user-row,
.audit-log-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(216, 224, 234, 0.92);
  background: rgba(255, 255, 255, 0.84);
}

.user-row-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.user-row-button:hover,
.user-row-button:focus-visible {
  border-color: rgba(56, 189, 248, 0.32);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.user-row-button.is-selected {
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.12);
  transform: translateY(-1px);
}

.queue-item p,
.classification-item p,
.user-row p,
.audit-log-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.queue-item strong,
.classification-item strong,
.user-row strong,
.audit-log-item strong {
  color: var(--text);
}

.user-row {
  display: grid;
  gap: 12px;
}

.user-row-header,
.audit-log-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.user-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-row-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.user-row-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  color: #334155;
}

.permission-grid {
  display: grid;
  gap: 16px;
}

.permission-grid.is-readonly {
  grid-template-columns: 1fr;
}

.permission-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(216, 224, 234, 0.92);
  background: rgba(248, 250, 252, 0.86);
}

.permission-group-header {
  display: grid;
  gap: 4px;
}

.permission-group-header h4,
.permission-group-header p {
  margin: 0;
}

.permission-group-header p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.permission-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.permission-toggle {
  display: flex;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(216, 224, 234, 0.92);
  background: rgba(248, 250, 252, 0.92);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.permission-toggle input {
  margin-top: 2px;
}

.user-role-select {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 12px;
  background: #fff;
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.mini-button.is-danger {
  color: #991b1b;
  background: #fee2e2;
  border-color: rgba(239, 68, 68, 0.22);
}

.mini-button.is-success {
  color: #166534;
  background: #dcfce7;
  border-color: rgba(34, 197, 94, 0.22);
}

.privacy-login-note {
  font-size: 12px;
  color: var(--text-muted, #888);
  margin: 0;
  text-align: center;
}

.text-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--accent, #3b82f6);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover {
  color: var(--accent-hover, #2563eb);
}

.demo-credentials {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(216, 224, 234, 0.92);
}

.demo-credentials-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.governance-card-discreet {
  grid-column: 1 / -1;
  gap: 12px;
  padding: 18px 20px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.68)),
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.08), transparent 30%);
}

#user-admin-panel {
  grid-column: 1 / -1;
}

.governance-card-discreet .audit-log-list {
  gap: 8px;
}

.governance-card-discreet .audit-log-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.governance-card-discreet .audit-log-head,
.governance-card-discreet .audit-log-item p {
  font-size: 12px;
}

.audit-log-actor {
  font-size: 12px;
  font-weight: 800;
  color: #0369a1 !important;
}

.checkpoint-publication-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.checkpoint-publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.modal-help {
  margin-top: 10px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field span,
.checkbox-row strong {
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  margin: 18px 0 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.34);
  border-radius: 999px;
}

@media (max-width: 980px) {
  .governance-split,
  .governance-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkpoint-grid {
    grid-template-columns: 1fr;
  }

  .board-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .board-help {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .hero-panel::after {
    opacity: 0.2;
    background-size: cover, 220px auto;
    background-position: center, right -18px center;
  }

  .app-shell {
    padding: 12px;
  }

  .top-tabs {
    padding: 8px;
  }

  .hero-panel,
  .board-panel,
  .modal {
    padding: 16px;
    border-radius: 24px;
  }

  .modal-header,
  .card-top,
  .modal-actions,
  .checkpoint-block-header,
  .checkpoint-block-header-archived,
  .checkpoint-header-actions {
    flex-direction: column;
  }

  .checkpoint-item {
    grid-template-columns: 1fr;
  }

  .checkpoint-ai-panel,
  .checkpoint-pauta-header,
  .checkpoint-topic-actions,
  .card-publication-row,
  .checkpoint-publication-row {
    flex-direction: column;
    align-items: stretch;
  }

  .checkpoint-topic-body {
    grid-template-columns: 1fr;
  }

  .checkpoint-pauta-subtitle {
    text-align: left;
  }

  .checkpoint-topic-date-field,
  .checkpoint-configure-ai-button {
    width: 100%;
  }

  .checkpoint-topic-date-input {
    width: 100%;
  }

  .checkpoint-delete-affordance {
    align-self: flex-end;
  }

  .checkpoint-item-actions,
  .checkpoint-pauta-actions {
    align-items: flex-start;
  }

  .header-actions {
    flex-direction: column;
  }

  .access-switcher,
  .checkpoint-publication-actions,
  .card-publication-actions,
  .user-row-actions {
    width: 100%;
  }

  .permission-grid {
    grid-template-columns: 1fr;
  }

  .permission-group-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-controls-row,
  .discipline-filter-box {
    flex-direction: column;
    align-items: stretch;
  }

  .discipline-filter-box select {
    min-width: 0;
    width: 100%;
  }

  .top-tab-button {
    width: 100%;
  }

  .top-tabs-actions {
    margin-left: 0;
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .modal-actions .primary-button,
  .modal-actions .secondary-button,
  .primary-button,
  .secondary-button,
  .header-button,
  .publication-button,
  .mini-button,
  .top-tabs-auth-button {
    width: 100%;
  }

  .checkpoint-action-button,
  .checkpoint-add-button,
  .checkpoint-toggle-button {
    width: 100%;
  }

  .checkpoint-item-actions {
    width: 100%;
  }

  .column {
    width: min(88vw, 320px);
    min-width: min(88vw, 320px);
  }
}

/* ── Brand / Logo ───────────────────────────────────── */
.top-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius-md);
  margin-right: 4px;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.top-brand:hover {
  opacity: 0.82;
}

.top-brand-mark {
  flex-shrink: 0;
}

.top-brand-name {
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.04em;
}

/* ── Button with icon ────────────────────────────────── */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-icon svg {
  flex-shrink: 0;
}

/* ── Checkpoint action button icon alignment ─────────── */
.checkpoint-action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── User avatar ─────────────────────────────────────── */
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.user-row-header {
  align-items: center;
  gap: 12px;
}

/* ── Column progress bar ─────────────────────────────── */
.column-progress {
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0 2px;
}

.column-progress-bar {
  height: 100%;
  background: #38bdf8;
  border-radius: 99px;
  transition: width 0.5s ease;
  min-width: 2px;
}

/* ── Drag-and-drop states ────────────────────────────── */
.card.dragging {
  opacity: 0.42;
  transform: rotate(1.5deg) scale(1.04);
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.45);
  z-index: 100;
  cursor: grabbing;
}

.column.is-drag-target {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 18px 48px -34px rgba(15, 23, 42, 0.58), 0 0 0 2px rgba(56, 189, 248, 0.18);
}

/* ── Spinner animation ───────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin {
  animation: spin 0.75s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* ── Toasts ─────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: auto;
}

.toast.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-success { background: #166534; }
.toast-error   { background: #991b1b; }
.toast-warning { background: #92400e; }
.toast-info    { background: var(--panel-strong); }

/* ── Confirm modal ───────────────────────────────────── */
.confirm-modal-body {
  padding: 4px 0;
}

.confirm-modal-message {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 24px;
}

.danger-button {
  background: var(--danger);
  color: #fff;
}

.danger-button:hover,
.danger-button:focus-visible {
  background: #b91c1c;
}

/* ── OpenAI config modal ────────────────────────────── */
.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 4px;
}
