/* static/css/constants_theme.css — Centralized UI Tokens (Immune under Rule 5/17) */
/* Strictly <= 200 lines and <= 100 characters per line. */

.pane-header-card {
  flex-shrink: 0;
  padding: 0.75rem;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .pane-header-card {
    flex-direction: row;
    align-items: center;
  }
}

.pane-meta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: monospace;
}

.pane-badge-neutral {
  padding: 0.25rem 0.5rem;
  background-color: #FAF8F5;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #404040;
}

.pane-badge-green {
  padding: 0.25rem 0.5rem;
  background-color: #EEF7F1;
  border: 1px solid rgba(38, 67, 50, 0.2);
  color: #264332;
}

.pane-badge-red {
  padding: 0.25rem 0.5rem;
  background-color: #FDF1EF;
  border: 1px solid rgba(194, 59, 34, 0.2);
  color: #C23B22;
}

.pane-stage-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pane-stage-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
}

.pane-sidebar-pane {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .pane-sidebar-pane {
    grid-column: span 4 / span 4;
  }
}

.pane-leaf-pane {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

@media (min-width: 768px) {
  .pane-leaf-pane {
    grid-column: span 8 / span 8;
  }
}

.leaf-top-bar {
  flex-shrink: 0;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FAF8F5;
}

.leaf-top-title {
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 700;
  color: #181A1B;
  text-transform: uppercase;
}

.anki-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  font-family: monospace;
  user-select: none;
  overflow-y: auto;
}

.anki-modal-backdrop.hidden,
.hidden {
  display: none !important;
}

.anki-modal-card {
  background-color: #1E1E1E;
  border: 1px solid #2C2C2C;
  border-radius: 1rem;
  padding: 1.25rem;
  max-width: 24rem;
  width: 100%;
  position: relative;
  font-size: 0.75rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.pane-branch-btn-primary {
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  cursor: pointer;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  display: block;
}

.pane-branch-btn-secondary {
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #FAF8F5;
  opacity: 0.7;
  cursor: pointer;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  display: block;
}

.branch-icon-dark {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #181A1B;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.branch-icon-navy {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1E2C3A;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

