.tck-header {
  padding: 20px clamp(24px, 6vw, 80px) 10px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.tck-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tck-hero {
  max-width: 680px;
}

.tck-main {
  padding: 20px clamp(24px, 6vw, 80px) 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.tck-search-bar {
  margin-bottom: 28px;
}

.tck-search-bar input {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  font-size: 1rem;
}

.tck-list {
  display: grid;
  gap: 20px;
}

.tck-loading {
  color: var(--muted);
  font-size: 1rem;
  padding: 40px 0;
  text-align: center;
}

.tck-empty {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 40px 0;
  text-align: center;
}

.tck-article-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tck-article-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.2s;
  gap: 16px;
}

.tck-article-header:hover {
  background: rgba(139, 30, 30, 0.08);
}

.tck-article-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.tck-article-num {
  background: rgba(139, 30, 30, 0.2);
  color: #e57373;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid rgba(139, 30, 30, 0.3);
}

.tck-article-desc {
  color: var(--text);
  font-size: 0.95rem;
  flex: 1;
  min-width: 0;
}

.tck-article-count {
  background: var(--panel-light);
  color: var(--muted);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid var(--border);
}

.tck-article-chevron {
  color: var(--muted);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.tck-article-card.open .tck-article-chevron {
  transform: rotate(180deg);
}

.tck-article-body {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0;
}

.tck-article-card.open .tck-article-body {
  display: block;
}

.tck-legal-section {
  border-bottom: 1px solid var(--border);
}

.tck-legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  cursor: pointer;
  background: rgba(139, 30, 30, 0.06);
  transition: background 0.2s;
}

.tck-legal-header:hover {
  background: rgba(139, 30, 30, 0.12);
}

.tck-legal-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #e57373;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tck-legal-toggle {
  font-size: 0.75rem;
  color: var(--muted);
  transition: transform 0.2s;
}

.tck-legal-section.expanded .tck-legal-toggle {
  transform: rotate(180deg);
}

.tck-legal-text {
  display: none;
  padding: 16px 24px 20px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.75;
  background: rgba(139, 30, 30, 0.03);
  border-top: 1px solid rgba(139, 30, 30, 0.1);
  font-style: italic;
}

.tck-legal-section.expanded .tck-legal-text {
  display: block;
}

.tck-profiles {
  display: grid;
  gap: 0;
}

.tck-profile-card {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.tck-profile-card:last-child {
  border-bottom: none;
}

.tck-profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.tck-profile-info {
  flex: 1;
  min-width: 0;
}

.tck-profile-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.tck-profile-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.tck-profile-role {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid var(--border);
}

.tck-profile-org {
  color: var(--muted);
  font-size: 0.85rem;
}

.tck-profile-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tck-profile-case {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(180, 83, 9, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(180, 83, 9, 0.3);
}

.tck-profile-action {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(139, 30, 30, 0.15);
  color: #e57373;
  border: 1px solid rgba(139, 30, 30, 0.3);
}

.tck-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.tck-detail-box {
  background: var(--panel-light);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border);
}

.tck-detail-box h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}

.tck-detail-box p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}

.tck-detail-box p.empty {
  color: var(--muted);
  font-style: italic;
}

.tck-sentence-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.25), rgba(220, 60, 30, 0.25));
  border: 1px solid rgba(220, 120, 30, 0.4);
  white-space: nowrap;
}

.tck-sentence-badge-icon {
  font-size: 0.9rem;
}

.tck-sentence-badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.02em;
}

.tck-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(139, 30, 30, 0.1);
  border: 1px solid rgba(139, 30, 30, 0.25);
  transition: background 0.2s;
  margin-top: 4px;
}

.tck-map-link:hover {
  background: rgba(139, 30, 30, 0.2);
  color: #e57373;
}

.tck-show-more-wrap {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.tck-show-more-btn {
  background: rgba(139, 30, 30, 0.12);
  border: 1px solid rgba(139, 30, 30, 0.25);
  color: #e57373;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.tck-show-more-btn:hover {
  background: rgba(139, 30, 30, 0.22);
  transform: scale(1.02);
}

.tck-more-profiles .tck-profile-card:last-child {
  border-bottom: none;
}

.admin-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-status {
  font-size: 0.8rem;
  color: #4ade80;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.tck-edit-btn {
  background: rgba(139, 30, 30, 0.15);
  border: 1px solid rgba(139, 30, 30, 0.3);
  color: #e57373;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.tck-edit-btn:hover {
  background: rgba(139, 30, 30, 0.3);
}

.tck-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.tck-modal {
  background: var(--panel, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tck-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border, #333);
}

.tck-modal-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #fff);
  margin: 0;
}

.tck-modal-close {
  background: none;
  border: none;
  color: var(--muted, #888);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.tck-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text, #fff);
}

.tck-modal-body {
  padding: 20px 24px;
  display: grid;
  gap: 12px;
}

.tck-modal-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted, #888);
  font-weight: 600;
}

.tck-modal-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border, #333);
  border-radius: 10px;
  color: var(--text, #fff);
  font-family: inherit;
  box-sizing: border-box;
}

.tck-modal-input:focus {
  outline: none;
  border-color: rgba(139, 30, 30, 0.5);
}

.tck-modal-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border, #333);
  border-radius: 10px;
  color: var(--text, #fff);
  font-family: inherit;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  box-sizing: border-box;
}

.tck-modal-textarea:focus {
  outline: none;
  border-color: rgba(139, 30, 30, 0.5);
}

.tck-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border, #333);
}

.tck-modal-save {
  background: linear-gradient(135deg, #8b1e1e, #a52a2a);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.tck-modal-save:hover {
  opacity: 0.9;
}

.tck-modal-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tck-legal-empty .tck-legal-header {
  border-style: dashed;
  border-color: rgba(139, 30, 30, 0.2);
}

@media (max-width: 700px) {
  .tck-detail-grid {
    grid-template-columns: 1fr;
  }

  .tck-article-header {
    padding: 16px;
  }

  .tck-profile-card {
    padding: 16px;
  }

  .tck-profile-top {
    flex-direction: column;
  }

  .tck-profile-right {
    align-items: flex-start;
  }

  .tck-legal-header {
    padding: 12px 16px;
  }

  .tck-legal-text {
    padding: 12px 16px 16px;
  }
}
