.page-head--embedded {
  margin: 0;
  padding: 0;
}

.check-board-shell {
  gap: 22px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.check-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.check-toolbar--fixed {
  align-items: flex-end;
}

.check-category-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.check-category-bar .btn.is-active {
  background: var(--teal);
  color: #042f2e;
  border-color: transparent;
}

.check-board-section {
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.check-board-overview {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.check-board-overview,
#board-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.check-board-section .loading-state,
.check-board-section .empty-state,
.check-board-section .error-state {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  padding: 18px 20px;
}

.check-board-scroller {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 0 8px;
}

.check-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 320px);
  gap: 18px;
  width: max-content;
  min-width: 100%;
  align-items: start;
}

.check-list-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 340px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  box-shadow: var(--shadow-soft);
}

.check-list-column.is-highlighted {
  border-color: rgba(14, 151, 173, 0.48);
  box-shadow: 0 0 0 1px rgba(14, 151, 173, 0.14), var(--shadow-soft);
}

.check-list-header {
  display: grid;
  gap: 12px;
  align-content: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.check-list-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  min-height: calc(1em * 1.35 * 3);
  max-height: calc(1em * 1.35 * 3);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-overflow: ellipsis;
}

.check-list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.check-list-cards {
  display: grid;
  gap: 14px;
}

.check-card {
  background: color-mix(in srgb, #243247 82%, rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(116, 142, 176, 0.32);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.22);
  display: grid;
  gap: 12px;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.check-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(14, 151, 173, 0.26);
  background: color-mix(in srgb, #2a3950 84%, rgba(255, 255, 255, 0.07));
}

.check-assignee-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 999px;
  background: rgba(58, 157, 142, 0.18);
  color: var(--teal);
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.check-card-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.check-card-progress {
  color: var(--muted);
  font-weight: 600;
}

.check-card-grid {
  display: grid;
  gap: 12px;
}

.check-card-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.check-card-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.check-card-row button {
  margin-left: auto;
}

.check-point-compose {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.check-point-compose-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.check-point-compose-header strong {
  font-size: 0.98rem;
}

.check-card-notes {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.check-notes-textarea {
  min-height: 130px;
  resize: vertical;
  border-color: color-mix(in srgb, var(--teal) 30%, var(--border));
  box-shadow: none;
}

.check-notes-textarea:focus {
  border-color: color-mix(in srgb, var(--teal) 30%, var(--border));
  box-shadow: none;
}

.check-template-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
}

.check-template-grid {
  display: grid;
  gap: 12px;
}

.check-template-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface-elevated);
  display: grid;
  gap: 14px;
}

.check-template-card-header,
.check-archive-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.check-template-card h3,
.check-archive-section h2,
.check-modal-header h2 {
  margin: 0;
}

.check-template-actions,
.check-point-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.check-point-list {
  display: grid;
  gap: 10px;
}

.check-point-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.check-inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.check-inline-form > * {
  flex: 1 1 180px;
}

.check-archive-layout {
  display: grid;
  gap: 22px;
}

.check-archive-section {
  display: grid;
  gap: 16px;
}

.check-archive-list {
  display: grid;
  gap: 12px;
}

.check-archive-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.check-archive-item strong {
  display: block;
}

.check-muted {
  color: var(--muted);
}

.check-modal {
  width: min(560px, 100%);
}

.check-modal--wide {
  width: min(720px, 100%);
}

.check-modal-header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.check-modal-header p {
  margin: 0;
}

.check-modal-body {
  display: grid;
  gap: 16px;
}

.check-modal-meta {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 4px 0 16px;
}

.check-modal-meta .check-card-progress {
  text-align: center;
}

.check-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.check-modal-footer--inline {
  margin-top: 0;
}

.check-prompt-form {
  display: grid;
  gap: 16px;
}

.check-template-picker-list {
  display: grid;
  gap: 12px;
}

.check-template-picker-button {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  flex-direction: column;
  padding: 14px 16px;
}

.check-template-picker-name {
  font-weight: 700;
  color: var(--text);
}

.check-template-picker-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.check-template-picker-feedback {
  min-height: 1.4em;
  color: #fca5a5;
  font-size: 0.95rem;
}

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

  .check-board {
    grid-auto-columns: minmax(260px, 88vw);
  }
}

@media (max-width: 680px) {
  .check-board-overview,
  .check-point-item,
  .check-card-row {
    grid-template-columns: 1fr;
  }

  .check-point-actions,
  .check-list-actions,
  .check-modal-footer,
  .check-modal-footer--inline,
  .check-point-compose-header {
    justify-content: flex-start;
  }
}
