.tooth-picker-modal {
  width: 620px;
}

.dental-chart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
}

.dental-chart-row {
  display: flex;
  gap: 3px;
  justify-content: center;
  align-items: center;
}

.dental-chart-divider {
  width: 1px;
  height: 52px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

.dental-chart-midline {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.dental-chart-arch-label {
  font-size: 10px;
  color: var(--text-2);
  text-align: center;
  margin: 2px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tooth-btn {
  width: 36px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--mono);
  transition: background 0.1s, border-color 0.1s;
  position: relative;
  user-select: none;
  gap: 2px;
}

.tooth-btn-fdi {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.tooth-btn-univ {
  font-size: 9px;
  line-height: 1;
}

.tooth-btn-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 8px;
  background: rgba(0,0,0,0.4);
  padding: 0 2px;
  border-radius: 2px;
  color: #fff;
  font-family: var(--mono);
}

/* tooth states */
.tooth-empty {
  background: var(--bg-2);
  color: var(--text-1);
}
.tooth-empty:hover {
  background: var(--bg-3);
  border-color: var(--accent);
  color: var(--text-0);
}

.tooth-measured {
  color: #fff;
  border-color: transparent;
}
.tooth-measured:hover { filter: brightness(1.15); }

.tooth-manual {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tooth-manual:hover { background: color-mix(in srgb, var(--accent) 85%, #fff); }

.tooth-missing {
  background: var(--bg-2);
  color: var(--text-2);
  border-color: var(--border);
  position: relative;
  overflow: hidden;
}
.tooth-missing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    var(--danger) calc(50% - 1px),
    var(--danger) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  pointer-events: none;
}

.tooth-selected {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Context menu */
.tooth-context-menu {
  position: fixed;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  z-index: 600;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.tooth-context-item {
  padding: 6px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-0);
  white-space: nowrap;
}
.tooth-context-item:hover { background: var(--bg-3); }
.tooth-context-item.danger { color: var(--danger); }

/* Picker actions */
.picker-actions-section {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.picker-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  flex-wrap: wrap;
}
.picker-actions-label {
  font-size: 11px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
